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,647
questions
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
10
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
28
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
11
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
18
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
8
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
12
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
26
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 ...
0
votes
0
answers
14
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
14
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
43
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
13
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 ...