When we configure CORS for a specific domain (sharepoint), will the other domain still able to access the same API

aiysh_shiv
Tera Contributor

I have a scripted rest API, other domains are able to access the API, whereas unable to access from sharepoint application. I need to enable CORS, by adding the domain, my question is when i do that, will the other domain still be able to access the same API, without any issues, or do i need to all the domain in the configuration. Can someone , please help.

Regards

Aiyshwarya

 

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi

yes, they will. CORS is only an issue for AJAX-based requests from a browser on client-side. It seems that your SharePoint is requesting your API from a Client Script.

All other consumers requesting from a server-side script will have no problems.

Maik