Skip to main content

Questions tagged [cors]

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

17 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
1k 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 ...
Tanmay's user avatar
  • 517
2 votes
0 answers
965 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 ...
kimchirichie's user avatar
1 vote
1 answer
838 views

Cors Error when generating access token for SharePoint point online from a JavaScript application

Any help is much appreciated. I'm trying to save data from a html form to a list in SharePoint online. I'm using SharePoint REST API to add items to the list. Ajax call to generate access token is ...
user100006's user avatar
1 vote
0 answers
98 views

Cross domain call using Graph API

I saw an article that we cannot do cross domain calls with SharePoint Rest API Updating SharePoint item using REST API from outside of SharePoint. In my case, my app is hosted in azure web app. The ...
Abhishek's user avatar
1 vote
2 answers
1k views

Problem making 3rd party API POST calls using SPFx

I need to fetch few details from the 3rd party API so I am making a POST request (required by the API) to that API using HttpClient But every time I am getting the below error. Access to fetch at '...
Ravi's user avatar
  • 848
1 vote
0 answers
23 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 ...
Rasool's user avatar
  • 11
1 vote
0 answers
24 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?
Emaborsa's user avatar
  • 1,189
1 vote
0 answers
198 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 ...
lumayara's user avatar
  • 121
0 votes
0 answers
35 views

Problem making 3rd party react API POST calls using SPFx

I am having same issue as posted this in post How to Call 3rd party API using Azure function and display in SharePoint online Site using SPFx?. Did any one find a solution? Here is the sample code: ...
Sruthi's user avatar
  • 1
0 votes
1 answer
45 views

Search not working on Sharepoint2019 public facing site

I have SharePoint 2019 on premise communication site which manages the public facing site. My search is working on on-premise site but it shows the error message which says Access to XMLHttpRequest ...
Shachin Magar's user avatar
0 votes
0 answers
462 views

CORS and SP2019 on prem dev

I'm again trying my hands on some SPFx development on code downloaded from GitHub. As we are behind firewalls and they won't open anything I have to use a local CDN for all my manifest files and what ...
Joel H's user avatar
  • 13
0 votes
0 answers
592 views

Make SetIsOriginAllowed Safe for SharePoint WebAPI?

I'm working on a test WebAPI for SharePoint that is secured with Azure AD via bearer tokens. At first, I manually specified every allowed origin with a statement like this inside ConfigureServices ...
Shawn Eary's user avatar
0 votes
1 answer
1k views

AJAX Request to sharepoint REST API But receiving CORS error

I want to request a sharepoint server with ajax but I get an CORS error : How can I solve this issue please $.ajax({ url: "http://myserver.com" + "/_api/web/Lists/GetByTitle('...
rezouane marimouttou's user avatar
0 votes
1 answer
752 views

How to enable Cors with URL Rewrite Sharepoint 2016?

I am getting CORS policy error. I am trying to use URL Rewrite plug in. I have IIS 10. I tried the examples(links) below, but it still didn't work. So What can i do more? https://techcommunity....
f_gulay's user avatar
  • 641
0 votes
0 answers
114 views

I get CORS error in SharePoint. I also changed web-config but nothing happens

I call AJAX request and the browser got CORS error. I tried to add "Access-Control-Allow-Origin" in IIS web.config. But it doesn't work. I have two servers. My AJAX is true only when I have ...
f_gulay's user avatar
  • 641
0 votes
1 answer
2k views

How can I make a GET request with Headers to an external API?

From a SP Online SPFx Web Part (No Javascript Framework), I've been trying to do a GET request to an API that expects some headers and nothing works. If use Postman, with the same URL and Headers it ...
jose luis gonzalez clua's user avatar
0 votes
1 answer
110 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 ...
Chris's user avatar
  • 23