Open Bug 1891715 Opened 1 year ago Updated 1 year ago

Incorrect behavior for multiple headers (CORP, COOP, AC-*, COEP)

Categories

(Core :: DOM: Networking, defect, P2)

Firefox 124
defect
Points:
3

Tracking

()

UNCONFIRMED

People

(Reporter: jannis, Unassigned)

References

Details

(Whiteboard: [necko-triaged][necko-priority-next])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:124.0) Gecko/20100101 Firefox/124.0

Steps to reproduce:

-Visit a site with two headers of the same type:

headerX:
headerX: value

Actual results:

  • CORP: is active, load fails -> error
  • COOP: is active, window.open.opener: null
  • CORS/ACAO: success, access to response possible
  • COEP: is active, all resources except the one with CORP: cross-origin fail to load

Expected results:

Duplicate headers are "forbidden"/the combined value ("<value>,") is not valid and thus the header has no effect.

Safari and Chromium do not apply CORP, COOP, ACAO, and COEP in the above examples in contrast to Firefox.

Other headers might be affected as well.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged][necko-priority-next]

Seems like the "same" issue was fixed previously for XCTO: https://bugzilla.mozilla.org/show_bug.cgi?id=1819642

Blocks: corp
Points: --- → 3
Rank: 3
You need to log in before you can comment on or make changes to this bug.