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,638
questions
0
votes
0
answers
12
views
CORS Error Response to preflight request doesn't pass access control check: It does not have HTTP ok status
Hello i've been developing a MERN app, instead of MongoDB is MySQL, so its MySQl ERN app.
My site is a simple blog, post blogs with a name, and the content of the blog.
So i implemented CORS while ...
0
votes
1
answer
26
views
Two NextJS applications in separate repositories under one backend
I have two NextJS applications under separate repositories and different domains.
I want the second NextJS application to fetch the first NextJS application's backend code. Backend is graphql + apollo....
0
votes
0
answers
23
views
Handling CORS in React Native
I have a FastAPI backend running and want to protect any URL using my endpoint with CORS. With a web app, it's simple; you just need to accept requests that match your frontend URL. However, how would ...
0
votes
0
answers
22
views
Firebase Listener doesnt work on safari but works on chrome
I am making a time table that users can store locally using Shared Preferences in flutter. When an admin makes an update in firestore, I want the changes to be updated locally as well (in Shared ...
0
votes
1
answer
13
views
CORS error accessing file in S3 from Serverless Framework deployment
I have a project based on a template using Serverless Framework to deploy a react app served from an S3 bucket. The serverless deploy works fine, creates the CloudFormation stack, creates the S3 ...
0
votes
0
answers
31
views
Origin type array not working in nextjs-cors
In the official CORS package of nextjs-cors documentation, I see that an array of domains can be passed as origin value: https://github.com/expressjs/cors#configuration-options
here is a code snippet
...
0
votes
0
answers
16
views
AWS CloudFront - "CORS header ‘Access-Control-Allow-Origin’ missing" for single S3 Resource
I have a video service which will automatically convert uploaded MP4 files to HLS Streams using MediaConvert and store them in S3. From there, a CloudFront URL to the HLS Stream is used for displaying ...
0
votes
0
answers
19
views
Why is CORS blocking the GCF request when an ID is used?
I am making calls via the Hubspot API from a Firebase Cloud Functions file. Most of these work without any issues; however, any endpoints that require an ID are blocked by CORS. I've tested these ...
0
votes
0
answers
9
views
How to fix CORS blocking maplibre-gl search option from accessing AWS Location Places indexes?
I am working on a ReactJS project where I am implementing a map from maplibre-gl-js. I have connected my app to AWS Location service using Amplify and can receive the Vector tiles from AWS. I cam ...
0
votes
0
answers
13
views
ElasticBeanstalk Docker app is allowing CORS all origins
We have a Docker application which we are deploying to AWS via the EB CLI and a Docker compose file. There is a load balancer that sits in front of the EC2 instance to setup SSL and forwarding rules ...
0
votes
0
answers
27
views
How to allow user to download an image using a reactjs button click? [duplicate]
EDIT: What makes this different is that I'm perfectly able to access these resources with the browser using an <img> tag, but can't get the data with a fetch. The 'similar' questions don't ...
0
votes
1
answer
62
views
Spring Boot and React app CORS errors (Hosted on Azure)
Hi to all that can help me.
I've been sitting here for days on end and I can't figure out how to get my Spring Boot and React app working.
The frontend is deployed as an Azure Static Web App and the ...
-1
votes
0
answers
24
views
Azure app unable to connect to Supabase- Invalid URL Exception
My app that runs completely fine locally has problem with connecting to Supabase when deployed on Azure.
raise SupabaseException("Invalid URL")
The credentials are correct.
It is a chat app ...
0
votes
0
answers
18
views
Setting JWT Cookies from Express Backend to Frontend
i am trying to set the cookie using JWT. On localhost everything works like charm. But when i deploy my FE(front-end) and BE(back-end) on render.com. i can login but after that i get the errors ...
-1
votes
0
answers
15
views
CORS errors on Firefox under corporate VPN
I'm using Firefox on a work Macbook. Occasionally, I encounter sites that won't load properly on Firefox, but everything works OK on Chrome. The latest example is https://miro.com
The system is ...
0
votes
0
answers
15
views
Next js- GraphQl Request is working in getStaticProps on component level but in component itself it's throwing CORS error on localhost [closed]
GraphQl Request is working in getStaticProps on component level but in component itself it's throwing CORS error on localhost. It is the same request, only in different place.
I know that ...
0
votes
0
answers
44
views
Asp.net Core API return POST method data from postman after publish But return CORS policy error from React App [closed]
I am trying to create a React App with an ASP.NET Core API backend. The problem is when I run the API locally and try to log in from the React app, everything works fine. I can fetch data without any ...
0
votes
0
answers
14
views
How to enable CORS in Hapi (post version 17)
In pre-v18 of Hapi, enabling CORS was pretty straightforward:
const server = Hapi.server({
port: 3000,
host: 'localhost',
routes: {
cors: true
}
});
With v18 the syntax for ...
-1
votes
0
answers
46
views
CORS undefined problem in Node.js and Plesk
I have problem with CORS in my Node app on Plesk. On example.com/checkout.html is the form with PayPal checkout, after the payment goes through, it sends the form data to example.com/abc (Node - ...
0
votes
1
answer
36
views
CORS Error on Angular only with Basic Auth
I have an Angular app that makes an httpClient.get() call to an Api.
I developed that api with SpringBoot and it should return a json.
I set @CrossOrigins(*) on each method and when I try to call the ...
1
vote
0
answers
26
views
CORS error showing even when the backend access control allow origin is set for frontend url after deployment on vercel
I have deployed my mern app's frontend and backend on vercel on 2 different url's.
For backend i have set :
app.use(cors({credentials : true , origin : 'https://music-app-client-five.vercel.app'}));
...
-1
votes
1
answer
87
views
CORS Issue on Azure Function App (Flex Consumption Host Model)
I'm currently facing a CORS (Cross-Origin Resource Sharing) issue with my Azure Function App, which is running on a Flex Consumption host model. It was developed locally and deployed to a Azure. I'm ...
0
votes
0
answers
27
views
CORS causing my file upload to fail in a kubernetes application with fastAPI and React frontend
I have been trying to get my frontend to work with a fastAPI to upload a file to a database. I keep hitting the CORS issue, have gone through multiple stackoverflow threads but Im still not any closer ...
0
votes
0
answers
6
views
Nuxt3 calling external api got cors error
hi i am using axios to call external api and i keep getting cors error right now
my nuxt.config.ts
export default defineNuxtConfig({
ssr: true,
srcDir: 'frontend/',
buildDir: 'frontend/.nuxt',
...
0
votes
0
answers
29
views
How do I add CORS header to AWS Lambda response headers using the Quarkus Lambda function?
When using Quarkus and considering using it to deploy lambda functions to AWS.
I've been able to create a function with GET and POST endpoints, link them to the API Gateway and hit them from Postman.
...
0
votes
0
answers
17
views
Issues with CORS and HTTP Requests in Vercel Deployment for Node.js and MongoDB Backend
I'm facing issues with CORS and HTTP requests in my project deployed on Vercel. The project involves a Node.js backend (node-backend.vercel.app) and a frontend (frontend-part.vercel.app). I have ...
0
votes
1
answer
34
views
Cors confict with 'Access-Control-Allow-Credentials'
I have a Node.js application with a React front-end. I'm working on this application in Project IDX. The CORS configuration is as follows:
backend:
app.use(cors({
origin: 'https://5173-url-front-...
0
votes
1
answer
42
views
CORS Error on https://api.anthropic.com/v1/messages API with Reacrt.js
I am facing CORS issue while integrating 'https://api.anthropic.com/v1/messages',
Does anyone solved it?
try {
const response = await axios.post(
'https://api.anthropic.com/v1/messages',
...
0
votes
0
answers
65
views
ERR_CONNECTION_TIMED_OUT When Making POST Request from React to Azure SQL server
I am encountering an ERR_CONNECTION_TIMED_OUT error when trying to send a POST request from my React application to my SQL Server hosted on Azure. The goal is to add data to an Azure SQL database. And ...
0
votes
0
answers
8
views
MERN frontend on public ip (117.162...:80) is not connecting to MERN backend on local ip (192.168.....:4000)
I have created MERN-VITE app and in local host it is working file even on my university network it is working fine and can be accessed from anywhere. But when I got public ip from IT department, the ...