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,643
questions
0
votes
1
answer
57
views
How to set custom headers for CORS use?
I'm trying to add a custom header Attachment-Name to the response returned by an HTTP get triggered azure function (written in typescript, using v4 programming model, running with Azure Functions Core ...
0
votes
1
answer
59
views
How can I avoid a CORS error when running this JavaScript in Visual Studio/IIS Express?
I know that in our QA and production environments, our system admins can add CORS configuration to allow these requests. While developing in Visual Studio 2022 and using IIS Express, what can I do to ...
0
votes
0
answers
43
views
Docker container, Cross-Origin Request Blocked, can't connect nginx website server to FastAPI
I'm trying to resolve Cross-Origin Request Blocked problem within my docker container.
This is my FastAPI code:
import os
from contextlib import asynccontextmanager
from fastapi import FastAPI
from ...
0
votes
0
answers
31
views
403 Forbidden error when using Angular proxy - only affecting one endpoint (Invalid CORS request)
I'm currently developing an Angular 15 project and I'm having an issue with making requests to a third-party server's endpoint - they've provided 3 endpoints, two of which I'm having no issues with ...
0
votes
1
answer
55
views
Laravel, Nuxt config for headers (cors)
error:
http://localhost:8000/sanctum/csrf-cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
...
0
votes
1
answer
32
views
django-angular Access to XMLHttpRequest has been blocked by CORS policy
When trying to commit a POST request to the django server I get the following error:
Obj:1 Access to XMLHttpRequest at 'http://localhost:8000/api/' from origin
'http://localhost:4200' has been blocked ...
0
votes
1
answer
46
views
Method Not allowed 405 not allowing post methods as get methods working
I have created a web api in asp.net web api as all methods work perfectly on localmachine but
throguh m siite where i hosted my site on vercel
when i call throgh this get methods work ...
-1
votes
0
answers
41
views
Vue js and Laravel SPA Facebook authentication CORS error
I'm trying to make authentication with Facebook in my vue js and laravel project and I'm getting this error:
This is my login function in the vue js:
const loginWithFacebook = async () => {
...
1
vote
1
answer
32
views
Express Subdomain and Route Returning Cors Error
I have a angular and nodejs app that worked perfectly fine. The application is an angular application with a nodejs backend hosted on heroku. I recently introduces subdomains to the nodejs server ...
0
votes
0
answers
27
views
Blocked by CORS policy: No 'Access-Control-Allow-Origin' header error nodejs
Whenever I try to establish a socket connection (from client) with my server (writen in nodejs), I get a cors error Access to XMLHttpRequest at 'https://example.onrender.com/socket.io/?EIO=4&...
-1
votes
0
answers
28
views
I am building a React Native Mobile application using Expo, how to allow requests from that IP of the services to the endpoinds since I am using CORS
I have built an application using React Native, but I have CORS integrated in the backend, how can I get the IP of the services when I have deployed the application in App Store and Google Play?
1
vote
0
answers
19
views
CORS pre-flight request issue when using API custom domain names
I have been stuck on this issue and it's driving me mad - for a bit of context, I'm trying to lodge a signin request from my front-end through my AWS API Gateway to a lambda function, which generates ...
0
votes
0
answers
36
views
CORS error when redirecting from server to client using spring Boot 2.7.10 with Spring Security enabled
I have two applications:
Spring boot application as backend server running on http://localhost:8080/server
Javascript client running on http://localhost:9000/app
Client on http://localhost:9000/app ...
-1
votes
0
answers
52
views
Frustrating Cors problem between django and react js
So hello everyone,
I am working on a project which have django as the api and react js as the frontend, but i am getting this annoying cors error no matter what i do to fix it.
I have tried everything ...
0
votes
1
answer
34
views
CORS actix-web Access to XMLHttpRequest has been blocked by CORS policy
I have an actix-web backend and a react frontend. I started getting this cors error. It was initially easy to resolve by adding
let cors = Cors::default()
.allowed_origin("http:/...