Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [cors]

Use this tag when you see a message in the browser devtools console about CORS (Cross-Origin Resource Sharing) — e.g., your browser logged an error about Access-Control-Allow-Origin, and you want to know how to eliminate the error. Also for other questions on the CORS protocol (defined in the Fetch Standard as a way to use response headers to tell browsers to relax the same-origin policy and allow cross-origin XHR/Fetch/Ajax requests).

0 votes
0 answers
17 views

Resolve cors error for Nuxt 3, for embedded app making request in project

CORS ERROR I have an issue in my project, I understand the error, as well as I tried to find answer for it but no luck so far. Here is my scenario: I have nuxt 3 app, where I am embedding one of the ...
Nexo's user avatar
  • 2,291
0 votes
0 answers
4 views

Next JS 14 CORS problem when post data directly inside a client component

I have a client component which is a modal for login. i need to send the data to the backend server via a post request very simply what I've done so far is like below: const [mobileNumber, ...
EshgheCode's user avatar
-2 votes
0 answers
12 views

Can't download files content-disposition inline with a POST request from my app after activating CORS on a spring boot 3 application on Chrome/Edge

I'm currently working on a java spring boot (3.2) application with Spring MVC and secured with Spring security. I wanted to add a CORS configuration on my app but this add a bug on downloading files ...
milcaepsilon's user avatar
0 votes
1 answer
11 views

aws ec2 nginx reverse proxy to nodejs allow cors not working

I tried a couple of examples: /etc/nginx/conf.d/default.conf server { listen 80; server_name ec2ip; set $cors_origin ""; set $cors_cred ""; set $cors_header ...
Steve Tomlin's user avatar
  • 3,683
0 votes
0 answers
18 views

Firebase onCall Functions Blocked by CORS, tried as true, with links, as false

Yes there are hundreds of post already about this, I've tried every solution. And it's still not working. I have onCall firebase functions working fine locally, but not when deployed to staging. I ...
lando2319's user avatar
  • 1,739
-2 votes
0 answers
24 views

React app is giving me CORS policy error. How can I fix it?

I'm trying to make a login page in React using Vite. To verify login credentials I have created an API in PHP. When I test the API with Postman it returns a data but with my react application it is ...
Muhammad Ahmad Chattha's user avatar
0 votes
1 answer
17 views

express-session does not persist session by cross site request

My client/server architecture: Client (Frontend): Vue (Vite) Server (Backend): Express.js Currently i use only the http, because it's a develop enviornment. For safe request purpose handling, i use ...
rammi22's user avatar
  • 395
-2 votes
0 answers
27 views

Node js CORS error only on /admin route only [closed]

I am facing this issue with only one route which is /admin. I have deployed the Node js Code on the EC2 instance. No Nginx is used, Domain is mapped using Load Balancer. There is no issue with the ...
Engineer S. Saad's user avatar
0 votes
0 answers
19 views

How to solve CORS errors generated by httplib in the same LAN

I created two VMs on vmware, one is with ip address 192.168.247.129 running httplib server and the other is client with ip address 192.168.247.146. The two virtual machines can ping each other The ...
朱博文's user avatar
0 votes
0 answers
25 views

Sporadically CORS Error while attempting to send the request to Azure Function: "Access to fetch at '***' has been blocked by CORS policy"

I have an Azure Functions deployed to Azure to TEST and PROD env. It is Isolated Worker model. I am sendint request while Azure Front Door. This is deployment script: resource runApiApp 'Microsoft.Web/...
Mykyta Halchenko's user avatar
-1 votes
1 answer
39 views

'Access-Control-Allow-Origin' -Error with Twitch API

I tried to fetch some data with the twitch.tv API on a little JavaScript project. Here is the fetch request: fetch("https://api.twitch.tv/helix/chat/emotes/global", { headers:...
offmanuel's user avatar
0 votes
1 answer
31 views

Unable to Add Product to Cart in Vue.js + Nuxt 3 + Pinia Store

I've been struggling for days to get my Vue.js application to add products to the cart using a Pinia store. My backend is built with Laravel, and I'm making API requests to add items to the cart. ...
David Buik's user avatar
0 votes
0 answers
29 views

Laravel 11 cors error- has been blocked by CORS policy: Response to preflight request doesn't pass access control check:

Access to XMLHttpRequest at 'https://laravel-react-survey-form-production.up.railway.app/api/signup' from origin 'https://laravel-react-survey-form.onrender.com' has been blyour textocked by CORS ...
Mark Daniel Edillor's user avatar
-2 votes
0 answers
7 views

Cross-Origin Request Blocked on Heroku App

When I try to start archive or recording then getting error: "Response body is not available to scripts (Reason: CORS Missing Allow Origin)" Anybody can help for this. It's wasting my time. ...
mohan lal's user avatar
-1 votes
0 answers
45 views

Axios and Fetch error only on Vercel (working fine on localhost)

I'm making requests to the Asaas (payment gateway) API routes locally and everything is working perfectly, but when deployed to Vercel, I get strange errors, I've already tried with fetch and axios. ...
Lucas Bonafé's user avatar

15 30 50 per page
1
2 3 4 5
978