Skip to main content

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
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 ...
mini1012's user avatar
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....
Mona Fang's user avatar
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 ...
Sahl 's user avatar
  • 45
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 ...
Fats's user avatar
  • 1
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 ...
gbryant's user avatar
  • 771
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 ...
Jeesmon Joy's user avatar
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 ...
MattChris's user avatar
  • 417
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 ...
Remy Bartolotta's user avatar
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 ...
Byron Ojua-Nice's user avatar
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 ...
Ben Thurley's user avatar
  • 7,111
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 ...
lowcrawler's user avatar
  • 7,299
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 ...
XavierReynolds's user avatar
-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 ...
user25605486's user avatar
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 ...
Faisal Rehman's user avatar
-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 ...
nologin's user avatar
  • 39
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 ...
Alicja Miotk's user avatar
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 ...
percy's user avatar
  • 11
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 ...
Not a machine's user avatar
-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 - ...
Ondra's user avatar
  • 1
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 ...
Francesco Cappellini's user avatar
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'})); ...
Aditya Nagare's user avatar
-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 ...
Shelani de Silva's user avatar
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 ...
SSB's user avatar
  • 26
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', ...
Code for life's user avatar
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. ...
TiOLUWA's user avatar
  • 215
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 ...
ShashidharM's user avatar
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-...
Jose's user avatar
  • 1
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', ...
Kshiteej Jain's user avatar
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 ...
EikkaPine's user avatar
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 ...
Tarun Kumar's user avatar

15 30 50 per page
1
2 3 4 5
488