Questions tagged [preflight]
A preflight is an HTTP OPTIONS request that browsers (automatically on their own) send to servers before trying certain kinds of cross-origin requests — in order to determine if a server has opted-in to receiving those kinds of requests.
preflight
432
questions
0
votes
0
answers
33
views
Preflight OPTIONS request fails fetching file from GitHub Pages site because of CORS error
I have an Android app and a Flutter-web app that fetch some files from my github pages site.
The following command
.\curl -v https://mygithubaccount.github.io/myrepository/config.yaml > log_command....
1
vote
0
answers
46
views
CORS breaks in Vite dev server but works in Webpack dev server
Most of our development uses a mock backend server running on the same machine as the Vite/Webpack dev server. We also need to connect the local dev server to the "real" Java BE server ...
1
vote
1
answer
1k
views
CORS issue - Redirect is not allowed for a preflight request
UPDATE: I was able to solve the issue thanks to the Sean's suggestion below.
Look at the response headers and see where the request wants to re-direct the client to (using the Location header). That ...
0
votes
0
answers
23
views
POST request not being send even after adding the CORS origin in react app using express as backend hosted on cpanel
I wanted to host the react application on the cpanel .I created 2 different domains one for front end and the other one for the backend.
I have successfully created the backend and also added the cors ...
0
votes
2
answers
106
views
Google app engine: call from another domain not working
calling an app engine (jetty @WebServlet) from another domain gives an error. In the logs I see the 'preflight' successful result, but the servlet code is not reached (a printout as the first line ...
0
votes
0
answers
265
views
Google Chrome 123 Update: Chrome is making preflight check for document/Redirect type GET request
After the chrome new update, I am facing a CORS exception in my application. Upon investigation, I found that it is doing a CORS preflight check to a document/Redirect type GET request, which it didn'...
0
votes
1
answer
221
views
Download a file from pre-signed url from s3 using Angular
Goal:
My angular app needs to read this json file from AWS S3 Pre-signed URL
Problem:
When I'm trying to get with http call a Pre-signed URL from S3 bucket, I'm getting an error,
https://mydomain has ...
0
votes
0
answers
42
views
How to handle "No StructParents key" PDF syntax issue when using iText to copy pages?
I'm encountering an issue while using iText 7 to extract pages from a PDF document. When attempting to copy pages using the CopyPagesTo method, I'm receiving a System.NotSupportedException with the ...
1
vote
0
answers
202
views
Preflight Request throwing an CORS error on AWS API Gateway
I am learning about nuances of AWS hosting.
I have relatively small app that works well on localhost, and in combination with Postman.
My setup is:
S3 hosted React app - with Cloudfront distribution ...
0
votes
0
answers
39
views
leaflet + QGIS SERVER : COORS - PREFLIGHT REQUEST FAILS
I am struggling with this case:
I use to have a web site with http protocol. Insite the pages a leaflet interface that ask for services (maps) to a different domain QGIS server.
That used to works ...
0
votes
0
answers
79
views
Why do I have to return the response code for cors preflight requests on my in nginx?
I spent some time to configure nginx to handle cors requests for a media folder of a web application. I saw a lot of articles and issue responses which tell to handle the OPTIONS request and return a ...
0
votes
0
answers
22
views
CORS error when deploying MERN app: 'Access-Control-Allow-Origin' missing header for hosted server, and 404 Not Found on server deployment
I have a MERN app which is divided into 2 folders client and server
I have hosted the client and server separately on Vercel and then replaced the localhost URL in the code with the appropriate URLs
...
0
votes
1
answer
227
views
ASP.NET Core 6 MVC : cors error on HttpPost only with authorization policy
I have added my ASP.NET Core 6 MVC application to Azure "App registrations" and I'm able to login using the Microsoft WebUI and perform GET requests to obtain e.g. my views.
The application ...
-1
votes
2
answers
396
views
Call to web api blocked by CORS policy even though .net webapi allows all methods
UPDATE 2:
SOLVED: See my answer below.
UPDATE 1:
Even if I hard code the program.cs in my webapi to ALWAYS set the Access-Control-Allow-Origin header the header is NOT set when calling the api with an ...
1
vote
0
answers
30
views
CORS preflight request is redirected and didn't passed
On my website, when user session is expired, the website redirects user to login page, nevertheless I have this CORS issue which doesn't allow me to do this:
...response to preflight request doesn't ...