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).
cors
14,652
questions
-2
votes
0
answers
20
views
Node js CORS error only on /admin route only
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 ...
0
votes
0
answers
18
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 ...
0
votes
0
answers
21
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/...
-1
votes
1
answer
37
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:...
0
votes
1
answer
27
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. ...
0
votes
0
answers
23
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 ...
-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. ...
-1
votes
0
answers
43
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.
...
0
votes
0
answers
21
views
How to get the Authorization key value from the response headers
The Network tab shows the header but unable to get the header in frontend(Next js)
enter image description here
But when I am console the response headers then this thing is showing.
enter image ...
1
vote
1
answer
26
views
Wix forms CORS issue
I am trying to submit a service call request using Wix Forms. The request works perfectly on Postman, but it fails when using Wix Forms, showing a CORS policy error.
Backend Code (backend/formHandler....
0
votes
1
answer
57
views
Getting error, WebSocket connection to 'wss://website.azurewebsites.net:8080/ws' failed: When making POST Request from React to Azure SQL server
I am having a problem with my azure web app (linux) while trying to add data into my sql database
Here are the errors im getting:
DataAdd.js:26
POST https://website.azurewebsites.net:5000/add-data ...
0
votes
0
answers
23
views
Apache2 WebServer Configuration : No 'Access-Control-Allow-Origin' header is present on the requested resource
I managed to deploy a map server:
I want to set the Access-Control-Allow-Origin settings in a way that it allows only specific IP Addresses to visualize the map
<VirtualHost *:80>
ServerName ...
0
votes
0
answers
49
views
Reusing Azure identity provider for website and API: how to avoid CORS issues due to redirects?
I am running into a CORS error while trying to request an API from a website, due to an identity provider redirect. I have a website running on https://webapp-***.azurewebsites.net and an API running ...
0
votes
1
answer
49
views
CORS Error: Getting error while trying to get info of user email and password for frontend
I have a localhost port 1000 for backend. For frontend, the port was 5173
Now to access form data from backend, I used CORS to request from my server, but it is showing me Error 401: unauthorised, ...
0
votes
0
answers
32
views
Laravel Sanctum: CORS error, no Access-Control-Allow-Origin header when unauthenticated
I am using Laravel 10 backend with Angular 16 frontend
I am getting a CORS error when making a unauthenticated call. I do not get this error when there is a valid token attached to the request. I also ...