Open
Bug 1396632
Opened 7 years ago
Updated 2 years ago
EventSource: CORS error prevents seeing request headers (and response)
Categories
(DevTools :: Netmonitor, defect, P3)
DevTools
Netmonitor
Tracking
(firefox57 fix-optional)
NEW
Tracking | Status | |
---|---|---|
firefox57 | --- | fix-optional |
People
(Reporter: annevk, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.70 KB,
patch
|
Details | Diff | Splinter Review |
While developer tools should certainly show CORS errors, they should continue to show what requests the browser made and the server responded with. Instead I get and no listing of a request to example.com: > Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://example.com/. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). > Firefox can’t establish a connection to the server at http://web-platform.test:8000/eventsource/resources/last-event-id-leakage.py. Chrome doesn't have this problem. Found while working on https://github.com/whatwg/fetch/issues/568.
Comment 1•7 years ago
|
||
Thanks for the report! Can you please provide some steps to reproduce the problem, so we can follow and see it on our machines? Thanks, Honza
Flags: needinfo?(annevk)
Reporter | ||
Comment 2•7 years ago
|
||
Comment on attachment 8904314 [details] [diff] [review] web-platform-tests patch demonstrating the issue If you apply the attached patch in the web-platform-tests directory you should be able to observe the problem. Alternatively you'd need to setup your own EventSource request that hits a redirect to a cross-origin resource that doesn't use CORS and then observe that the developer console doesn't give a whole lot of information about that final request.
Attachment #8904314 -
Attachment is patch: true
Attachment #8904314 -
Attachment mime type: text/html → text/plain
Flags: needinfo?(annevk)
Comment 3•7 years ago
|
||
Having an online page that we can just load and see the problem immediately would help a lot in this case. Honza
Priority: -- → P3
Reporter | ||
Comment 4•7 years ago
|
||
I tried to reproduce it with a different setup, but https://dump.testsuite.org/2017/bug1396632-2.html works fine. Not sure what's going on then.
Updated•7 years ago
|
status-firefox57:
--- → fix-optional
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•