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).

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

CORS error on client commuicating with web api

I programmed a Web-API using rust-axum and I made a client/frontend using just html and javascript Request. When I try to make a request from my client (opening the html file or serving a server e.g. ...
Moritz's user avatar
  • 378
0 votes
0 answers
14 views

Browser not saving cookie in storage

I have a spring mvc backend at http://localhost:8080/ and a angular frontend at http://localhost:4200. I am sending a cookie from backend to frontend but it isn't being saved by the browser. I have ...
Manas Raut's user avatar
0 votes
0 answers
21 views

CORS does not work for login user for POST, PUT, DELETE in Blazor WASM after deploy on IIS

I am using a Blazor WebAssembly application as the frontend and a standard C# REST API as the backend. I am encountering difficulties with configuring CORS for the Blazor WASM application. The CORS ...
MarekWdowiak's user avatar
0 votes
0 answers
8 views

Problems with cors plugin installation in laravel 10

I'm doing a laravel/react application and in console when I call an endpoint I see the classic cors error. So backend side I wanna install fruitcake/laravel-cors but when I run command composer ...
Christian Termo's user avatar
-1 votes
0 answers
8 views

How to solve CORS error when already used cors middleware in the server side and set the proxy in the client side?

I'm trying to fetch values for a resistor color code calculator app from the API. I'm doing both back and front, using MERN. When I simulate a request from the Thunder VSC extension, I do get the ...
thatmare's user avatar
-1 votes
0 answers
23 views

Angular app calling PHP script has CORS failure on POST only [duplicate]

Going to preface this question with a reference to a supposed solution to this problem as posted here: Why is an OPTIONS request sent and can I disable it? The final post on the "accepted" ...
Pete Helgren's user avatar
-1 votes
0 answers
19 views

CORS error while trying to refresh Keycloak token

I'm trying to refresh the access token provided by Keycloak using the endpoint: POST /realms/xplorer/protocol/openid-connect/token and the body I'm sending is: client_id: my_client grant_type: ...
Alessio Raddi's user avatar
-2 votes
1 answer
24 views

CORS error after deployment on render.com

Frontend is not working because of CORS error. I m deploying my frontend on Netlify and Backend on Render.com. I've deployed backend of my app on render.com. index.mjs: const app=express(); app.use('/...
Zuha Sohail's user avatar
0 votes
0 answers
7 views

Heroku server deployment, possible CORS issue

I am having some trouble hitting my endpoints on my server that is deployed on Heroku. Front end is deployed on Github using gh-pages. App link https://cbied.github.io/face-recognition/ frontend https:...
Chris Biediger's user avatar
0 votes
0 answers
13 views

Servlet doPut rejecting my frontend fetch due to CORS

I'm running a React frontend for my Java WebServlets backend, up until now I've found no trouble with CORS by just using "response.addHeader("Access-Control-Allow-Origin", "http://...
salvador8a's user avatar
1 vote
0 answers
12 views

Vercel serverless nodejs + CORS issue

I have been googling for solution since two day before still didn't get the solution that why I am asking here API (nodejs) and reactjs both hosted in vercel - how to solve this CORS issue This is the ...
Hunter's user avatar
  • 1,535
0 votes
1 answer
20 views

How to download a video from tiktok cdn on button click with NextJS 13 (app) without getting cors error

So I am making a Tiktok downloader that downloads a Tiktok video. I already have an API that gets the URL of the video. Here is the sample link A video from tiktok This is my code for downloading the ...
Parzival's user avatar
  • 107
0 votes
0 answers
9 views

AWS CORS Headers AMP Email

I have a JSON file that I am using as the src for the amp-list tag. I have the json file uploaded to an S3 Amazon bucket. I want to edit the CORS headers to allow the file to be used in an AMP email. ...
Nader's user avatar
  • 1
0 votes
0 answers
9 views

Trying to make a request to openai and return an image in base64

Uncaught Error: Could not load data:image/png;base64,undefined: undefined at index-dc6125bc.esm.js:1648:36 at HTMLImageElement.onImageError (three.module.js:42367:19) handleDecals(type, `data:...
Lucas Hagan's user avatar
0 votes
0 answers
25 views

How do I get rid of this problem blocked by CORS policy (with java spring boot)?

I'm having problems with cors with my spring java API, I deployed it to render but when I try to consume it it gives a CORS error even though I passed the domain from my frontend to the backend to ...
Gustavo Nepomuceno's user avatar
0 votes
0 answers
24 views

http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin'

I'm receiving the message 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' when making a request via an Angular application (version 8.1.2). Thank you in ...
-1 votes
0 answers
22 views

Enabling CORS on Spring Data Rest

I'm using Spring Data Rest (with parent v3.1.2), and I need to enable CORS for all the repositories. I've already tried adding @CrossOrigin to the repository, and also adding a global configuration ...
shyam's user avatar
  • 6,679
-1 votes
0 answers
4 views

error: Access to font at 'dev.misitioejemplo.com/' from origin 'misitioejemplo.com' has been blocked by CORS policy

As you can see, the problem is not because of having "www". What other option can I rule out? Thanks in advance Error I clarify that this problem only occurs on the production site, this ...
Margarita Carcases's user avatar
0 votes
0 answers
6 views

Nodemailer contact form not working from phone

I've made a contact form using React, and for the backend I'm using CORS, Express, and Nodemailer. I've deployed the application on Netlify, and I'm encountering an issue when attempting to send test ...
Cecilia's user avatar
-1 votes
0 answers
15 views

CORS enabled in ASP.NET API but still getting CORS error

I'm trying to post a JSON object from an Angular Application and in custom header I have added required attributes in Angular service as shown below. but I'm still getting the bellow error. Access to ...
Ajit Darnal's user avatar
0 votes
0 answers
7 views

CORS Policy Error When Authorizing Shopify Integration with Angular(Frontend) and Node.js(Backend)

I am encountering a CORS (Cross-Origin Resource Sharing) policy issue while trying to authorize a Shopify integration with Backend(Nodejs). Here's the specific error message I'm facing: Access to ...
Rohan Ahmed's user avatar
0 votes
1 answer
34 views

Getting CORS and 401 errors on using Start Recording API in Azure Communication Calling SDK

I'm using the @azure/communication-common and @azure/communication-calling libraries in my JavaScript application to create a call between two users. I've made use of the following API: "POST {...
Abdullah Nadeem's user avatar
-1 votes
0 answers
10 views

Issue Running Ionic App on Real iOS Device with Capacitor (Version Information Included)

I am currently learning and encountering an issue when attempting to run my Ionic app on a real iOS device using Capacitor. The problem occurs when I use the 'ionic capacitor run ios' command. After ...
Nikita Kononov's user avatar
1 vote
0 answers
12 views

Why does not postman encounter CORS issue , but web app does?

When I use postman for testing our api then I get results. But when I use my web project application then I get CORS error : datatable = table.DataTable({ 'ajax': { "...
pheromix's user avatar
  • 18.3k
0 votes
0 answers
20 views

Shopify Checkout UI Extension GET Fetch Issue + Fetch API + App Extension + React

Hi I'm trying to GET fetch requests using two different APIs but keep getting a CORS issue on the second fetch. I've tried writing this in different ways and also using the same API and still get the ...
Tom Hooker's user avatar
0 votes
1 answer
23 views

AWS - Access to XMLHttpRequest has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

I have a configured CloudFront distribution with an S3 bucket origin, which generally works. But, I am receiving the below error. I understand this is a common question, but I have reviewed all the ...
Richard Zack's user avatar
0 votes
1 answer
16 views

Google Cloud CDN not accepting signed cookies via browser

Google Cloud CDN is set with a backend bucket which is configured and working for signed cookies when called via curl. I have the Cloud-CDN-Cookie set correctly in the browser, but when calling the ...
João Fidellis's user avatar
0 votes
0 answers
33 views

CORS ERROR: I have a Laravel project that i'm posting from a HTML form and an Ajax request to the Laravel 10 server route. Which gets rejected by CORS

I have a Laravel project that i am posting to from a remote server using an HTML form and an Ajax request to the Laravel 10 server route. Which gets rejected by CORS Access to XMLHttpRequest at 'https:...
user3449468's user avatar
1 vote
0 answers
15 views

Persistent CORS Issue Despite Setting Headers in Express.js

I'm working on a project where I have a frontend running at http://127.0.0.1:5500 and a backend Express.js server running at http://localhost:3000. I'm trying to make a POST request from the frontend ...
Daniel's user avatar
  • 11
0 votes
1 answer
45 views

Spring Security 6, Angular 13 CORS problem OPTIONS request

i have this application in Springboot for the backend and the angular app as frontend my problem is that when i perform a http get call from angular to the backend it response me with a 'Access to ...
Matteo Vigilante's user avatar
1 vote
0 answers
34 views

Why does the preflight request appear to be sent after the actual request?

This is weird, hope someone with experience can let me know why. So I'm using AWS API Gateway to create a lambda proxy. I added CORS preflight to the root of the API. However, when I try to call such ...
James Gadge's user avatar
0 votes
1 answer
37 views

Laravel redirection failed with CORS error

I have a Laravel API, and I am trying to redirect the user back to my website (Angular), but it is not working. This is the Laravel snippet. public function payViaApplePay(Request $request) { $...
vobomo3682's user avatar
0 votes
0 answers
39 views

CORS issue when making GET requests to Django server behind Caddy reverse proxy

I'm encountering a CORS (Cross-Origin Resource Sharing) issue when making GET requests to my Django server, which is hosted behind a Caddy reverse proxy. Here's the situation: I have a Django server ...
Indrajeet Haldar's user avatar
1 vote
1 answer
19 views

(Status: 302) Gitlab Pages JSON translation files CORS policy error & redirect

I have an Angular project in which I use JSON files (path: src/assets/i18n)to translate the content into different languages. I put my project on Gitlab Pages, but I get the following error: Access ...
Lorenzo's user avatar
  • 195
0 votes
0 answers
20 views

How to add CORS (cross origin allow) to API Gateway authorized by Cognito userPool

I'm trying to add defaultCorsPreflightOptions in CDK to my LambdaRestApi instance which is configured to use COGNITO as authorizationType. The code block is as follows: const restApi = new ...
Pouyan's user avatar
  • 25
0 votes
0 answers
29 views

Why is my HttpOnly cookie not stored in the browser for cross site domains?

I would like to save my HttpOnly cookie that I get from the backend in the browser. However, this is not happening and I don't know why. In my Spring Boot (Java) app, I added the HttpOnly cookie in ...
Doncarlito87's user avatar
-1 votes
1 answer
22 views

Getting CORS error with code 302 while making a GET request to Google auth server from React App

I am trying to add a simple feature i.e to get all YouTube videos liked by the user. In order to access the required YouTube API end point, I need to first authenticate user on Google auth server (...
sagar patel's user avatar
0 votes
1 answer
54 views

blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource : Errors

In my E-commerce mern app, its perfectly work in my http://localhost:****. When i deployed backend as HTTPS, GET method was working while POST was not. The error showing blocked by cors policy. ...
Exynos's user avatar
  • 1
0 votes
2 answers
22 views

Error: Cannot find module 'cors' when Deploying Node.js x React App to Heroku

Background I am trying to deploy a web application developed with Node.js and React on Heroku. I am using the Basic Dyno Types on Heroku. The frontend resides in the root directory, and the backend is ...
test-app's user avatar
-2 votes
1 answer
33 views

Hls .m3u8 Manifest file issue [closed]

I made a scrapper that Scraps one of my fav. movie websites "flixhq" and gives me the .m3u8 Manifest file . Whose contents are something like this : `EXTM3U #EXT-X-TARGETDURATION:13 #EXT-X-...
maqlly's user avatar
  • 1
1 vote
0 answers
31 views

Getting error: "Response to preflight request doesn't pass access control check" only when I pass Authorization header from my react app

Getting error: Response to preflight request doesn't pass access control check only when I pass Authorization header from my react app. When I do not pass Authorization header, api call works ...
Eva Software Solutions's user avatar
0 votes
2 answers
26 views

cors problem with node, typescript, apollo and graphql

I'm getting corns with my application. Have I configured my server incorrectly ? I'm trying to create a user in my PostgreeSQL database via the frontend. I've made a tsx component which is a form. ...
BigZoo92's user avatar
-1 votes
0 answers
27 views

cors error in my nodejs and react js project

i have a reactjs project and a node js project. i keep having cors error Access to fetch at 'https://mywebsite.com/nodeserver/chat' from origin 'https://mywebsite.app' has been blocked by CORS policy:...
Tracy's user avatar
  • 21
-3 votes
0 answers
22 views

how to solve laravel-react CORS issue? [closed]

hello everyone i am using laravel 9 and react and i keep getting cors error this is the error message : Access to XMLHttpRequest at 'http://127.0.0.1:8000/addCompany' from origin 'http://localhost:...
baraa aboshi's user avatar
1 vote
1 answer
23 views

Error Connecting Frontend and Backend on Different Ports with Flask

Description: I've been working on a project that involves a frontend and a backend component, both running on different ports. However, I'm encountering an error when trying to connect them. ...
Paris Vanuya's user avatar
1 vote
0 answers
11 views

Express-session storing session in MongoDB but not setting a browser cookie

I'm using the express-session package to manage sessions in my Node.js application. I've configured it to use a MongoDB store to store sessions, and when a user logs in, the session data is ...
Sami Ali's user avatar
0 votes
0 answers
18 views

How to set proxy in electron use webpack?

I'm using electron-react-boilerplate set proxy in webpack devServer, but not work The directory structure of this project is as follows: use axios const BASE_URL = process.env.NODE_ENV !== '...
宋永涛's user avatar
0 votes
0 answers
32 views

CORS Issue: 'Access-Control-Allow-Origin' Header Error

I'm working on a web application with a frontend running on port 3000 and a backend on port 4000. My application includes a login form, and when I try to log in, I encounter a CORS (Cross-Origin ...
ics3ustudent's user avatar
0 votes
1 answer
14 views

How to handle OPTIONS request in nodejs when setting access control in header?

I need to set up a public API endpoint on a server running next.js. The code below works, I get the response without any CORS errors on the client side. export default async (req, res) => { res....
jost21's user avatar
  • 1,116
1 vote
0 answers
20 views

Firebase authentication works locally, but does not work when deployed with Netlify

I integrated Firebase authentication to an Astro website following this guide: https://docs.astro.build/en/guides/backend/google-firebase/ the authentication works locally, but in the deployed version ...
pr0gmtc's user avatar
  • 11

1
2 3 4 5
275