Tag: cors

52 votes
29 answers
491 views
Enabling CORS in Cloud Functions for Firebase

I'm currently learning how to use new Cloud Functions for Firebase and the problem I'm having is tha

avatar
Bryan
0 1 0 9
asked 07 September, 2021
64 votes
30 answers
2.3K views
How to enable CORS in ASP.net Core WebAPI

What I am trying to do I have a backend ASP.Net Core Web API hosted on an Azure Free Plan (Source Code: https

avatar
Corey
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
1.2K views
Origin is not allowed by Access-Control-Allow-Origin

I'm making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap).

avatar
Patsy
0 1 0 9
asked 07 September, 2021
60 votes
10 answers
2K views
CORS: Cannot use wildcard in Access-Control-Allow-Origin when credentials flag is true

I have a setup involving Frontend server (Node.js, domain: localhost:3000) <---> Backend (Django, Ajax,

avatar
Brianne
0 1 0 9
asked 07 September, 2021
50 votes
9 answers
1.1K views
What is the motivation behind the introduction of preflight CORS requests?

Cross-origin resource sharing is a mechanism that allows a web page to make XMLHttpRequests to another domain

avatar
Yolando
0 1 0 9
asked 07 September, 2021
55 votes
25 answers
692 views
Response to preflight request doesn&apos;t pass access control check

I'm getting this error using ngResource to call a REST API on Amazon Web Services: XMLHttpRequest cannot

avatar
Sydney
0 1 0 9
asked 07 September, 2021
51 votes
12 answers
1.4K views
Why does my JavaScript code receive a "No &apos;Access-Control-Allow-Origin&apos; header is present on the requested resource" error, while Postman does not?

Mod note: This question is about why XMLHttpRequest/fetch/etc. on the browser are subject to the Same Access

avatar
Robyn
0 1 0 9
asked 07 September, 2021
55 votes
10 answers
2.5K views
CORS in .NET Core

I am trying to enable CORS in .NET Core in this way: public IConfigurationRoot Configuration { get; }

avatar
Venice
0 1 0 9
asked 07 September, 2021