Skip to main content

Questions tagged [cors]

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

0 votes
1 answer
1k views

how fix CORS policy when I call an API?

How can I fix this error? I can't call my API from the backend
SiCaMa's user avatar
  • 15
0 votes
1 answer
79 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
1 answer
2k views

SPFx RSS Webpart CORS Policy Blocked

First of all, Happy Christmas and Happy new year. I have an issue trying to display a RSS feed into a SPFx webpart. I'm using this code on github: https://github.com/pnp/sp-dev-fx-webparts/tree/master/...
Jordi Fresnillo's user avatar
1 vote
1 answer
1k 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
0 votes
0 answers
665 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
1 answer
3k views

Error Access to XMLHttpRequest at "http" from origin has been blocked by CORS policy - Graph API -

I would like to retrieve list of recent files from a particular document library or site for the logged on user This is using a content editor on a sharepoint classic site When i run the code below i ...
naijacoder's user avatar
  • 4,368
0 votes
0 answers
645 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
1 vote
0 answers
116 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
0 votes
0 answers
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
1k 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
  • 651
0 votes
0 answers
132 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
  • 651
0 votes
1 answer
3k views

Problem with CORS Policy when call to API with SPFx

have problem with CORS Policy. Get an error: Access to fetch at 'https://XXX.azurewebsites.net/api/protocols' from origin 'https://localhost:4321' has been blocked by CORS policy: No 'Access-Control-...
Maciej's user avatar
  • 15
1 vote
2 answers
2k 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
  • 856
1 vote
1 answer
792 views

Icon missing and access to XMLHttpRequest at officeapps url got CORS error

I am developing a SPFX extension. While I am debug it at my SP online site using debug script, I found the icons are not showing up. Those icon are <i className="ms-Icon ms-Icon--PageEdit &...
Mark L's user avatar
  • 4,075
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

15 30 50 per page