Devtools/Network: POST "CORS Missing Allow Origin" but request/response happened
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
People
(Reporter: andre-david.blome, Unassigned, NeedInfo)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0
Steps to reproduce:
some html with embedded js:
fetch('http://localhost:8080/...', {
method: 'post',
body: ...
}) ...;
Opened up page + devtools/network
Clicked the button
Actual results:
JS did the request on my REST API:
OPTIONS request with response header "Access-Control-Allow-Origin: *" (and three access control headers more)
POST request: "CORS Missing Allow Origin"; Size 1.45kB; Status 500, with html response from glassfish
Expected results:
Same as above, but without the CORS error message in the "Transferred" column etc.
Mozilla Firefox for Linux Mint Version 89.0
Reporter | ||
Comment 1•3 years ago
|
||
The user agent is wrong, it's: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Hi andre-david.blome,
Thanks for filing!
I think this might be a duplicate of Bug 1671147, can you take a look and see if this is the same issue?
Basically a CORS issue doesn't mean that the request doesn't happen, it's just that the client will not have access to the response.
Otherwise if this is not really what you are reporting, could you share an example so that we can try to reproduce your issue?
Thanks
Updated•3 years ago
|
Description
•