Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cors]

CORS (Cross-Origin Resource Sharing) allows browsers' XMLHttpRequest object to make cross-origin requests.

3
votes
0answers
126 views

Calling ASP.NET Web API 2 from an SPFx webpart

I am facing an issue with authenticating my SPFx webpart against an Azure AD backed Web API. What I have done so far is Created a ASP.NET WEB API 2 project. Added OWIN and configured CORS and OIDC in ...
2
votes
1answer
791 views

SPFx calls blocked by CORS policy

I'v been trying to access various apis through SPFx and I am constantly seeing this issue. I do not know how to fix this can anyone assist or explain what I am doing wrong or missing? This works ...
1
vote
0answers
11 views

Workflow 2013 http request with credentials

I have a C# WebApi2 endpoint with CORS and SupportsCredentials activated. What I'm trying to do is to call this endpoint from a Workflow. How do I pass the credentials?
0
votes
2answers
1k views

How to add multiple URL to Access-Control-Allow-Origin header in SharePoint 2013 web.config

To resolve the CORS issue I have added the following headers in the web.config file of SharePoint 2013 <add name="Access-Control-Allow-Origin" value="http://localhost:4200" /> <add name="...
1
vote
1answer
2k views

Error : “The 'Access-Control-Allow-Origin' header contains multiple values” while enabling CORS in SharePoint 2013

I am trying to access SharePoint Document Library Data from outside application through rest api. Below is the code I am using. function readSPRestApi() { console.log("Calling Api.."); ...
1
vote
0answers
109 views

Trying to do a POST from SP to Service Now

I have been trying to do a post in Service Now through an angularjs form in SP, however I am always getting a CORS error. I've taken all CORS rules from Service Now and still am getting this error and ...
2
votes
0answers
493 views

is on-premise Sharepoint 2016 REST API possible with oauth?

I have a Sharepoint 2016 server and a python web server. I would like to read data from Sharepoint with my python server. I was able to do this on Office 365 on the cloud but did not find much ...
0
votes
1answer
71 views

show images from host-web in add-in (app web) CORS problem

I need to display images from the host web in an add-in, without the user necessarily having visited the host web. Is this achievable? The images are stored as item attachments in a list, and I've ...
2
votes
1answer
1k views

AJAX POST REST call generates CORS error

My SharePoint client JavaScript is calling an external REST API URL, using the code pattern below $.ajax({ type: "POST", url: 'https:\\theexternal.domain......, contentType: "application/json", ...
7
votes
1answer
334 views

CORS problems upload.aspx dialog

I'm trying to upload a file and to show the Upload.aspx dialog from an external web site. I have this code: function openUploadNewDocumentDialog(passingID) { var dialogOptions = SP.UI.$...
0
votes
3answers
2k views

“Cross-Origin Request Blocked” - how to bypass for REST queries

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource" I'm trying to use REST api to query a library to find all the file names in it so that I can populate a ...