How to enable cross origin support in SharePoint

Could someone please help me to enable cross origin (CORS) support on SharePoint 2010. I am following steps mentioned in http://www.avanadeblog.com/sharepointasg/2013/01/cors-request-to-sharepoint-with-basic-authentication.html and http://evolpin.wordpress.com/2012/10/12/the-cors/
but getting 401 unauthorized error.
Thanks,
Manas

Hi Manas,
Did you wirte a custom HTTP Module ?
As the above articles said, “There is a known Problem in IIS 7 with preflight requests (more information on preflight requests can be found here).
When using CORS you have to deal with this type of Requests because they send an HTTP Options request to determine whether it is safe to process the request or not. As you are going to enable Basic Authentication IIS 7 is expecting to get some credentials
also with the options request and that will fail with a 401 (Unauthorized). “
The solution to this is writing a custom HTTP Module that changes the response header to any OPTIONS Request from 401(Unauthorized) to 200 (OK).
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support

Similar Messages

  • How to enable JPA2.1 support in weblogic 12.1.2

    Hi,
    how to enable JPA2.1 support in weblogic 12.1.2 ?
    I am finding javax.persistence_2.1.0.0_1-0-2.jar  in /modules/ directory of my weblogic 12.1.2 production installation. but I am not able use JPA2.1 methods , during runtime , I am getting noSuchMethod error  when I try to call  createStoredProcedureQuery. but in the javax.persistence_2.1.0.0_1-0-2.jar  it is there.
    StoredProcedureQuery storedProcedure =
    entityManager.createStoredProcedureQuery("SP_GET_GSA_CAMEL2");
    I have added the below line in commEnv.sh, But no help. Still getting the error.
    export PRE_CLASSPATH=/wls/product/ofm12.1.2/oracle_common/modules/javax.persistence_2.1.0.0_1-0-2.jar:
    can somebody reply any specific steps I have to follow to enable JPA2.1 features in weblogic 12.1.2.
    regards
    Muthuvel

    Hi Windows 2008 support only TLS 1.0 not 1.1 and 1.2, so it works OK. To use higher TLS protocols you must use at least 2008R2 SP1 or higher version of Windows server

  • How to Enable Anonymous access to a SharePoint 2013 site e.g for specific site,list etc..

    Hi All,
          I'm working on an extranet and i would like users to be able to fill a form on the site.
    Since i'm going to use sharepoint 2013 how can i configure sharepoint to use both anonymous access and windows authentication at the same time.
    I know for sure it can be done but what can be allowed for anonymous access e.g specific list site etc..
    I would need to make some area available as anonymous e.g a whole site as  i would like to brand it a little to host the form.Any tips of who has configured similar would be appreciated

    Hi Patrick,
    Thanks for posting your query, Kindly follow the below mentioned steps to enable Anonymous access to a SharePoint 2013 site.
    In Central Administration, under Application Management., click Manage web applications.
    Select the web application you want to enable anonymous access for.
    In the Security group on the ribbon, click Authentication Providers.
    In the Authentication Providers dialog box, under Zone, click Default.
    On the Edit Authentication page, select the Enable anonymous access check box.
    Click Save.
    Close the Authentication Providers dialog box.
    Also, browse the below mentioned URLs for more details
    http://blog.cloudshare.com/2012/10/15/how-to-enable-anonymous-access-to-a-sharepoint-2013-site/
    http://www.sharepoint-journey.com/how-to-enable-anonymous-access-in-sharepoint-2013.html
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to enable hardware virtualisation support?

    Today I upgraded to mac os x lion and when I open parallels desktop it asks me to enable hardware virtualisation support on my MacBook pro so that I can run windows xp as a virtual machine. I have searched the net and cannot find a way to access the bios to enable this feature, please could I have some support and advise on how to enable the VT. I did have any problems whilst I was on os x snow leopard and parallels used to work fine.
    Thanks in advance.

    Boot camp  is the way to go then you will be able to turn it on. Run boot camp install windows xp and you be able to get into the bios
    Here's some other help full info as well
    VMware Fusion 3.1.3 was designed for OS X 10.6 (Snow Leopard) but is compatible with Mac OS X 10.7 (Lion), with the reservations listed below. If you are running an older versions of VMware Fusion, upgrade to VMware Fusion 3.1.3 before upgrading to Lion. Fusion 2.x is incompatible with Lion.  For the best experience, reinstall Fusion after upgrading to Lion.  When running Fusion on Lion, these limitations are known to exist:
    The Migration Assistant, included with VMware Fusion, is not compatible with Mac OS X Lion. This is due to a change in file sharing components.
    VMware recommends that a Snow Leopard-based Mac be used to migrate an existing PC. The resulting virtual machine can then be used in Fusion running on Lion.
    Boot Camp partitions are not accessible through Fusion after upgrading to Lion.
    To work around this issue, delete the Boot Camp virtual machine from the library and recreate it.  For more information, see A Boot Camp virtual machine fails to power on with a disk error (1003483).
    Minor visual issues have been reported when using Mission Control with Unity mode.
    Mac OS X 10.7 (Lion) Client and Server cannot be run as guests, at this time.
    VMware can provide best effort support if you choose to upgrade to Lion, but we cannot guarantee a resolution for all issues.
    To be alerted when this article is updated, click Subscribe to Document in the Actions box.

  • How to enable cross domain file loading in Firefox

    I have some javascript on domain A which would load a file on domain B, and I need to enable cross site data transferring in browsers.
    For IE, I can set it in Options -> Security -> Custom Level -> Enable Cross Site Data transferring
    For Chrome and Safari, launch the browser with additional parameter --disable-security-server
    But for firefox, I don't know how to do this, when I am visiting the web page on domain A, it returned me 401 unauthorized error.

    Does this article apply? https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS

  • How to: Enable CUDA GPU Support for "Unsupported Cards" in CS6 (same process as in CS5+)  :) for MAC

    Hi all, I previously was involved in some discussion regarding GPU acceleration with CUDA in Premier Pro CS5 using an 'Unsupported card' with my Macbook Pro... I would like to show you this still works and will be here to show the process for anyone, and will post a video of the whole thing as a step-by-step probably tomorrow (its quite late where i am just now) but I'll give you a quick run through just now... Proof at bottom of page...
    Ps. This only applies to Nvidia card Macs.. I have no ATI card mac to try this out as OpenCL etc but i would imagine it would be a similar process...
    Step 1... Install Cuda drivers for your Mac (im using 4.2.7) here   http://www.nvidia.com/object/mac-driver-archive.html
    Step 2... Install GfxCardStatus and force your graphics (if using a laptop) to discrete card only   http://codykrieger.com/gfxCardStatus
    Step 3... Open Terminal... and run GpuSniffer... path as follows for original default installation directory, copy and paste then hit enter or change as required
                  /Applications/Adobe\ Premiere\ Pro\ CS6/Adobe\ Premiere\ Pro\ CS6.app/Contents/GPUSniffer.app/Contents/MacOS/GPUSniffer 
    This should give you an output as follows, while it may differ this is my output...
    --- OpenGL Info ---
    2012-05-02 01:00:28.642 GPUSniffer[6661:2403] invalid drawable
    Vendor: NVIDIA Corporation
    Renderer: NVIDIA GeForce GT 330M OpenGL Engine
    OpenGL Version: 2.1 NVIDIA-7.18.11
    GLSL Version: 1.20
    Monitors: 2
    Monitor 0 properties -
       Size: (0, 0, 1920, 1080)
       Max texture size: 8192
       Supports non-power of two: 1
       Shaders 444: 1
       Shaders 422: 1
       Shaders 420: 1
    2012-05-02 01:00:28.666 GPUSniffer[6661:2403] invalid drawable
    Monitor 1 properties -
       Size: (0, -1200, 1920, 1200)
       Max texture size: 8192
       Supports non-power of two: 1
       Shaders 444: 1
       Shaders 422: 1
       Shaders 420: 1
    --- GPU Computation Info ---
    Found 2 devices supporting GPU computation.
    CUDA Device 0 -
       Name: GeForce GT 330M
       Capability: 1.2
       Driver: 4.02
       Total Video Memory: 511MB
    OpenCL Device 1 -
       Name: GeForce GT 330M
       Capability: 1.1
       Driver: 1
       Total Video Memory: 512MB
       Not chosen because it did not match the named list of cards
    Step 4... Using the name of your card from the above output, i have it underlined, in my case a GeForce GT 330M, copy this exact name as we will now add it to the list of supported cards...
    Step 5... Using terminal still, again assuming default install directories, copy and paste then hit enter on the following...
                 sudo nano /Applications/Adobe\ Premiere\ Pro\ CS6/Adobe\ Premiere\ Pro\ CS6.app/Contents/cuda_supported_cards.txt
    You will then be asked for your computer password, type it and hit enter, it will not be shown as you type FYI... You will then see the default supported cards, add your card by pasting the name you have as in Step 4, then use ctrl+x to escape, type Y to save and hit enter a couple of times to get out...
    You should now be able to run Premier Pro CS6 using the CUDA GPU option you can select in Renderer as you start a new project!!
    Any questions i will try to answer them as soon as possible, and as i said i'll screen capture and record a video tutorial as i know that would be of help to some of you out there.. Some proof, here is a pic...
    PS. It is a full 1080 pic so it is quite large...
    Message was edited by: StuCS5 - Changed Font Size

    Very usefull! it worked perfectly on premiere cs6 on my macbook pro 2.8ghz with geforce gt 330m, Any suggestion for enabling ray traced 3d also in after effect? I inserted the  geforce gt 330m on the after effect card list, but when i enable ray traced 3d the text in the comp disappear!
    thanks!

  • How to enable infopath form service in sharepoint

    Hi,
    I am using Infopath designer 2013.
    When i am opening Sharepoint List, after mentioning its url its giving me following error:
    How can i enable infopath form service.
    please help to solve the issue.
    Thanks in advance!
    Regards
    rajni

    Hello,
    It seems enterprise feature is not activated to your site, not CA. Please go to your site Site Settings/Site Collection Administration/Features and activate the SharePoint Server Enterprise Site Collection features.
    See this thread for your ref:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5225cb4a-f981-49b5-ac1c-e3c832bcf79d/this-feature-requires-sharepoint-server-2010-or-greater-with-infopath-forms-services-enabled?forum=sharepointgeneralprevious
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to enable NFC HCE support in Sony Xperia A2 SO-04F?

    Greetings! Is this possible to enable NFC Host-based Card Emulation (HCE) support in Sony Xperia A2 SO-04F phone? Sony Xperia A2 SO-04F is a Japan version of the Sony Xperia Z1 Compact D5503, so I've placed my question here. But it have a different Sony CXD2235AGG NFC/FeLiCa chip and a modified Android NFC stack. If HCE support could be added only in updated firmware, please, let me know where I could ask about such possibility. Thanks a lot for your answers!  

    Hi
    Open Source Nfc stack can be found in those patches
    cd ../../../external/libnfc-nci/
    git fetch https://android.googlesource.com/platform/external/libnfc-nci refs/changes/42/103142/1 && git cherry-pick FETCH_HEAD
    git fetch https://android.googlesource.com/platform/external/libnfc-nci refs/changes/23/103123/1 && git cherry-pick FETCH_HEAD
    git fetch https://android.googlesource.com/platform/external/libnfc-nci refs/changes/51/97051/1 && git cherry-pick FETCH_HEAD
    cd ../../hardware/libhardware/
    git fetch https://android.googlesource.com/platform/hardware/libhardware refs/changes/21/103221/2 && git cherry-pick FETCH_HEAD
    Open Devices uses those patches to enable NFC functionality
    Br
    Alin
     

  • How to enable multi-language support in JAVA

    i want to make an application whose language will be URDU but how to enablw urdu or any non-english language characters in java.plz help.i am an SCJP.

    The partial answer is that you use fonts that can display those characters. But you may also have to address how to enter them from the keyboard, how to store them in databases, how to transmit them via HTTP... depending on your actual requirements.
    Start with the "Internationalization" tutorial that is referenced here: http://java.sun.com/docs/books/tutorial/

  • How to enable resource sharing with complex AEBS setup

    I have a complex AEBS + Netgear network configuration that I am trying to enable resource sharing on. The Netgear router is necessary because it provides excellent per-user parental controls and content filtering that the AEBS lacks. The setup is operational (network connectivity works as expected), but I cannot figure out how to enable cross-network resource visibility and sharing.
    Here is the network configuration:
    |Vz Fios PPoEE |
    |
    v
    |___
    |AEBS|
    | __Mac Mini (wireless)
    | __AppleTV (wireless)
    | __Wii (wireless)
    | __MBPC2Duo (wireless)
    | __WinXp PC1 (wired)
    |
    v
    |______
    |Netgear|
    | __WinXP PC2/Printer (wired)
    | __WinXp PC3 (wired)
    | __iBook (wireless)
    | __Vista Laptop1 (wireless)
    | __Vista Laptop2 (wireless)
    The Mini, AppleTV, Wii and MBPC2Duo all connect wirelessly with the AEBS. The Netgear router is wired to the AEBS. This in turn has 2 wired clients and three wireless clients as illustrated.
    The Netgear router receives an IP address assignment from the AEBS (in the 10.0.1.x range) via DHCP and in turn assigns IP addresses (in the 192.168.1.x range) to attached clients via DHCP
    The setup is operational and operates flawlessly --network-wise. However, I now need to enable resource sharing as follows:
    1) Setup the Mini as the media hub, configured to allow:
    a. storage of all iTunes, iPhoto, iMovie and garage band content to an attached external hard drive,
    b. sharing of content on the Mini with iTunes on each computer (Macs and Pcs) and the AppleTV
    2) Share the printer attached to Windows XP PC2 with all computers (Macs and PCs)
    Questions:
    1. Is this possible with this network configuration?
    2. If so, how would I configure the relevant elements?
    3. Is it better to attach the external media storage to the AEBS vs attaching it to the Mini?
    Thanks!

    Thanks Tesserax. After some digging I was able to find bridge mode config instructions for the Netgear router.
    Follow-up question:
    Given my desire to centralize media access via the Mac Mini, what is the best way to set up my media storage device (320G HD)?
    I see the following options:
    A. NAS device via USB 2.0 connection to the AEBS, or
    B. Supplemental hard drive on the Mac Mini via USB 2.0 or Firewire.
    Thoughts/suggestions?
    Thanks!

  • Enable amd v support for G505S

    How to enable AMD-V  support for G505s Support .. It has A8 5550M Procesor that support AMD-V...Not able to find tht option in BIOS settings?

    Hey Divyanshuv,
        Welcome to the forums
    I believe the AMD V settings should be in the BIOS 
    F2 -> Configuration -> AMD V (for an intel CPU its called Intel vanderpool technology) 
    keep me posted
    regards
    Lets make 2015 the year of the #DO
    Did I or someone help you today? Press the star on the left to thank them with a Kudo!

  • SharePoint Online cross-origin framing, changing page in autohosted MVC app

    Hi
    I have created SharePoint Autohosted app on MVC5 template. I have created a controller and the Index view associated with it. The view is responsible for showing the user a list of announcements, taken from database and passed to the view through the model.
    In the layout page for this view I have the link for Create Announcement view which is in the same Announcements folder, and the same controller is responsible for showing it. When I include the app in the page using Client Web Part the Index view is showing
    correctly, and I can see the hyperlinks to Create Announcement page. When I click the link I am presented with blank page within the webpart container and in Firebug I can see:
    Load denied by X-Frame-Options: https://GUID.o365apps.net/Announcements/Create?SPHostUrl=site_collection_address does not permit cross-origin framing.
    Why? This is the same domain, right?
    I have already tried <webpartpages:allowframing runat="server" /> and httpmodules. Those do not work. BTW Why?
    I am really frustrated, please give me some advice what to do.
    Thanks in advance

    Alright, this is freaking riddiculous. I have found the issue after 8 hours of digging in this mud. This little jebaka was in the Create view markup:
    @Html.AntiForgeryToken()
    And this also has to be thrown out as far as possible:
    [ValidateAntiForgeryToken]
    from every method which is decorated with it (ie. all POST methods)
    I know, I know, security blah blah blah.
    If the app is not working at all, there is no need for security.
    I still hope for a word of explanation from someone from M$. I would really be pleased to know how should it be done in the right way.

  • How to enable "All Files" in SharePoint Designer 2010

    Hi everyone,
    How can I enable "All Files" in my sharepoint designer.In home laptop I see it,but in production environment where I work,opening SharePoint Designer I can not see "All Files" button.I am with admin account and everithing is ticked in the central administration
    Designer options.
    Thanks in advance. 

    Hi ,
    I noticed that you said you can see the ‘All files’ folder in home laptop ,but it is missing when open in the production environment .Did this happen to
    all the sites or the site in the specific web application ?Have you extend the web application into an Internet zone?
    Actually you should change  the SharePoint designer settings in both  Central Administration and Site collection settings .Perform an IIS reset after change
    the settings and reopen the site in SharePoint designer.
    For more information about SharePoint designer settings ,please refer to this site :
    Locking Down SharePoint Designer 2010 :
    http://blogs.msdn.com/b/mcsnoiwb/archive/2010/07/01/locking-down-sharepoint-designer-2010.aspx
    Thanks,
    Entan Ming

  • How to Enable Video Mirror in Original iPad, I don't want to hack on it

    How to Enable Video Mirror in Original iPad, I don't want to hack on it

    Dave Parker wrote:
    Where can I learn more about how core OS services are controlled?
    Try the developer forum. You'll find many like minded people there to assist you with questions. Most of the people in this forum are end-users.
    http://developer.apple.com/devforums/

  • How to Enable Ratings on SharePoint List using Client Object Model for Office 365 SharePoint Site.

    How to Enable Ratings on SharePoint List using Client Object Model code for Office 365 SharePoint Site.
    Thanks in Advance
    Rajendra K

    Hi Rajendra,
    here you are the code and the blog, let me know if this helps
    using (ClientContext ctx = new ClientContext(https://yourSiteUrl))
    Web w = ctx.Web;
    List l = w.Lists.GetByTitle("yourListName");
    ctx.Load(l, info => info.Id);
    ctx.ExecuteQuery();
    string ListID = l.Id.ToString();
    Microsoft.Office.Server.ReputationModel.Reputation.SetRating(ctx, ListID, 1, 5);
    ctx.ExecuteQuery();
    http://blogs.technet.com/b/speschka/archive/2013/07/08/how-to-use-csom-with-ratings-in-sharepoint-2013.aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

Maybe you are looking for

  • How do i move my photobooth photos from my old mac to my new mac with lion os

    have tons of photos in my older version of photobooth, how do i migrate them to new mac with lion os. looked everywhere but can't find an answer.

  • Can connect to network, but not to internet

    I have a wireless network set up with four macs connecting to it. Three of the macs can connect to the network and access the internet. My Black Macbook can connect to the network, but when I open Safari or any other program that connects to the inte

  • Dynamic Class Loading with interface

    Hello I would appreciate any help on the following problem. I need to load all classes in a particular directory and its subdirectories (top directory is known but not in the classpath) which implement a predefined interface. At the moment I am using

  • How to test the select statement.

    Hi All, How to test the select statement. Is there any Oracle sqlplus  or toad kind of tool to  test the query. thanks siva

  • How to use moving maximum in query desighner

    Hi All, i am new to BI, please help. I have a requirement to find the maximum and minimum posting date for an article. For this i would need to use the moving maximum feature of the query. where to find this function and how to use it. please reply t