Skip to main content

All Questions

Tagged with
1 vote
1 answer
29 views

Use XHR in Webworker without CORS headers or preflight answer from server

I am working on a page that will be server by a small embedded webserver that I have no control of. On the page, some data transfer (XHR) should be done inside a web worker. The server will not send ...
Stefan Hegny's user avatar
  • 2,159
0 votes
1 answer
120 views

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

I've recently been working on an online invoice generator using the MERN Stack with TypeScript. I have included an option to generate a PDF using the Puppeteer library when a button is clicked. This ...
WTF itz Aryan's user avatar
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 ...
groove_of_course's user avatar
0 votes
0 answers
19 views

Access to XMLHttpRequest blocked by CORS policy:'Access-Control-Allow-Origin' In FLASK

Access to XMLHttpRequest at 'http://localhost:5000/signincheck' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested ...
Hamzah Al-Hamadani's user avatar
0 votes
0 answers
29 views

I am creating react app where I have used appwrite for authentication but I am getting a CORS error

I am using appwrite for authentication functionality, I have set the hostname as localhost as I am working in my local environment but I am still getting following CORS error: Access to XMLHttpRequest ...
Yash Khadikar's user avatar
0 votes
0 answers
30 views

error CORS Access-Control-Allow-Origin is not equal to the supplied origin

I'm trying to load a page from an external domain but I have a CORS problem: Access to XMLHttpRequest at 'https://www.first.com/test/test' (redirected from 'https://second.com/xyzwy') from origin '...
Alberto P's user avatar
0 votes
0 answers
53 views

Sending credentials to subdomain API using XHR

I am currently trying to send images to an API on a subdomain, but it is failing. In devtools I can see there is a CORS error relating to a redirect on Preflight: Access to XMLHttpRequest at 'https://...
Tony Merryfield's user avatar
0 votes
0 answers
25 views

I had to save a canvas drawing but my POST request is blocked by CORS problem

Introduction I have researched this CORS problem. Chat GPT is going round in circles and nothing it has advised me to do has worked. The functionality I've coded is quite simple, and you can even ...
walkingtomron's user avatar
-1 votes
1 answer
441 views

How can I set a request's Origin header in the browser's Console? [closed]

Im trying to set a origin with this code in chrome console var xhr = new XMLHttpRequest(); xhr.open('PUT', url, true); xhr.setRequestHeader('Origin','https://andromeda'); But chrome is saying "...
mahan's user avatar
  • 27
0 votes
0 answers
25 views

Why request get blocked by CORS when 'http' is not included?

I was struggling with requesting data from an endpoint. At first, I attempted to fetch some data at localhost:8000/api/jobs' but it threw the error bellow: Access to XMLHttpRequest at 'localhost:8000/...
Thiago Fernandes's user avatar
0 votes
0 answers
100 views

X-Requested-With Header is Missing Only On Production - AWS ALB + ECS + EC2

I can see the following xhr request in the Google Chrome Developer tools (in production website). But when I inspect the request, I cannot see the X-Requested-With: header as I see in my development ...
testkit's user avatar
  • 53
-1 votes
1 answer
87 views

Angular Frontend CORS ERROR on POST request

I am getting a CORS Error, when trying to POST onto my JAVA-SPRING backend. But GET-Requests from http://localhost:8080/api/currentPlayer are working. Also I have added a Access-Control-Allow-Origin ...
bermuda99's user avatar
1 vote
1 answer
68 views

JavaScript get file size hosted on another origin without control of crossorigin headers

Here is a dummy PDF file available for download: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf This is hosted on w3.org so I definitely won't have control of response headers....
Aelita's user avatar
  • 59
1 vote
0 answers
193 views

"CORS fail" when using self-signed certificate with HTTPS

I have two devices. A and B. Both of them have HTML pages and rest APIs and the connections are protected by HTTPS with a self-signed certificates so the browser will show a potential risk warning ...
Bruce Hsu's user avatar
0 votes
0 answers
196 views

CORS Error when invoking 'GET' from external API in JavaScript

I have a normal HTML/JavaScript application where I am trying to request a GET from the API's URL. When I ran the program, it returned this error: Access to XMLHttpRequest at 'URL' from origin 'null' ...
John Arc's user avatar
  • 183

15 30 50 per page
1
2 3 4 5
37