Closed Bug 1716136 Opened 3 years ago Closed 3 years ago

Devtools/Network: POST "CORS Missing Allow Origin" but request/response happened

Categories

(DevTools :: Netmonitor, defect)

Firefox 89
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1671147

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

The user agent is wrong, it's: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Component: Untriaged → Netmonitor
Product: Firefox → DevTools
Flags: needinfo?(jdescottes)

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

Flags: needinfo?(jdescottes) → needinfo?(andre-david.blome)
See Also: → 1671147
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.