Open Bug 1496986 Opened 6 years ago Updated 2 years ago

javascript or css source map requests set CORS origin as null

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: kanru, Unassigned)

References

(Blocks 2 open bugs)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Steps to reproduce:

I was trying to setup a new site and wanted to debug generated js code that had source maps.


Actual results:

The request sent by the debugger sets the CORS header Origin to null so the server returned 403 (I think this is common practice)

Web console showed: Source map error: request failed with status 403

Debugger cannot use the source map.


Expected results:

Debugger should not use CORS or should use the same origin so the source map can be retrieved.
Maybe related to bug #1404245.
Blocks: source-maps
Priority: -- → P3

It would be nice to have a private browsing/cors meta.

Blocks: dbg-sources
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.