Missing CORS preflight OPTIONS request in the Network panel
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(firefox57 fix-optional)
Tracking | Status | |
---|---|---|
firefox57 | --- | fix-optional |
People
(Reporter: gerd.neumann, Unassigned, NeedInfo)
References
(Blocks 1 open bug)
Details
Attachments
(6 files, 1 obsolete file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0 Build ID: 20170625030210 Steps to reproduce: Doing ajax CORS requests, see description at https://bugzilla.mozilla.org/show_bug.cgi?id=1375561#c0 Actual results: ATM, in Console this preflight was not successful is not shown. This report is for the netmonitor. Netmonitor shows the OPTIONS request and a green 200 status. See screenshot. Technically, this is correct. Expected results: There should be an indicator that this was a preflight request for CORS and despite being 200 status it should show, that something went wrong and that there is a CORs issue. When I hit CORS issues I first look into the Console (for which we now have Bug 1375561), then I look at the netmonito (for which I now filed this bug report)
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•6 years ago
|
Comment 1•4 years ago
|
||
I am not seeing the OPTIONS request anymore.
I am seeing just one blocked GET request now
Chrome is showing both GET & OPTIONS
See the attached screenshot.
@Gerd, how does the test case work for you now?
Honza
Updated•4 years ago
|
Comment 2•4 years ago
•
|
||
Attaching the proper screenshot.
- The top one is Firefox, showing just one GET
- The bottom one is Chrome, showing GET and OPTIONS
Comment 3•4 years ago
|
||
Here is an online test case based on the one in comment #0
STR:
- Load http://janodvarko.cz/tests/bugzilla/1376253/
- Open DevTools and select the Network panel
- Click the button on the page
- You should see two requests GET and (preflight) OPTIONS
- There is just GET => BUG
Chrome shows both correctly.
Honza
Comment 4•4 years ago
|
||
Junior, can you reproduce this bug?
The preflight request doesn't seem to be reported by Necko platform hooks.
Is it a Necko issue?
Honza
Comment 6•4 years ago
|
||
@bomsy, can you repro the issue using STRs in comment #3?
Honza
Comment 7•4 years ago
|
||
Comment 8•4 years ago
|
||
Comment 9•4 years ago
|
||
I see it Fixed in Nightly see comment #7
But it seem broken in MC see comment #8
Looks like it might have regressed?
Comment 10•4 years ago
|
||
@harald, can you also test this one?
I am wondering if CORS cache can be involved in this...
Honza
Comment 11•4 years ago
|
||
WFM in Nightly, I see both a red OPTIONS and GET request.
Comment 12•4 years ago
|
||
(In reply to Hubert Boma Manilla (:bomsy) from comment #9)
I see it Fixed in Nightly see comment #7
But it seem broken in MC see comment #8
Bomsy, could you check this again. How it's working for you now in Nightly/m-c?
Honza
Comment 13•4 years ago
|
||
Hey honza,
i'm still seeing the same as Comment 9
Comment 14•4 years ago
|
||
(In reply to Hubert Boma Manilla (:bomsy) from comment #13)
Hey honza,
i'm still seeing the same as Comment 9
Thanks for the update. Yes, I can now see the same.
What could be the difference between m-c and Nightly build?
Honza
Comment 16•2 years ago
|
||
I can't reproduce the issue anymore.
- The Network panel shows two failed requests: OPTIONS, GET
- The Console panel shows two errors (+ XHRs if the XHR filter is on)
Honza
Comment 17•2 years ago
|
||
Feel free to reopen if you are still experiencing the reported problem.
Description
•