Questions tagged [cors]

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

Filter by
Sorted by
Tagged with
7
votes
1answer
430 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.$...
3
votes
2answers
34 views

Search page not showing after URL rewrite on reverse proxy

Our SharePoint 2016 on-premise farm have setup Internet access. Our reverse proxy have setup URL rewrite from 'https://www.mysharepoint.com' (Internet URL) to https://server_wfe1/ (our web front end ...
3
votes
0answers
560 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
2k 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", ...
2
votes
1answer
3k 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 ...
2
votes
0answers
630 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 ...
1
vote
1answer
3k 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
12 views

cross domain issue in sharepoint 2013 while accessing sharepoint list items using Ajax

i have written Rest Ajax call to fetch sharepoint 2013 list items from another sitecollection which works fine in IE but when same in chrome throws error CORS, cross domain issue. Am looking for ...
1
vote
0answers
17 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?
1
vote
0answers
141 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 ...
0
votes
3answers
3k 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 ...
0
votes
0answers
22 views

how to fix blocked by CORS policy, the page are on the same domain

am getting content from html page which is on the same domain of my sharepoint site site 1 : https://siteA.domain.com/page.html Site 2 , SPSite : https://spsite.domain.com/ I tried the ajax call : $...
0
votes
2answers
50 views

Front-end connection between two site-collections

I have two site collections on the same farm (on-prem SP 2016), but different domains (business.* and projects.*). I have full control on both sites. And yet, I cannot access one from the other. I ...
0
votes
2answers
3k 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="...
0
votes
1answer
76 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 ...