Skip to content

fix: set COOP to same-origin-allow-popups to fix Firebase signInWithP…#10

Merged
AlexLopezGomez merged 1 commit into
mainfrom
dev
Mar 21, 2026
Merged

fix: set COOP to same-origin-allow-popups to fix Firebase signInWithP…#10
AlexLopezGomez merged 1 commit into
mainfrom
dev

Conversation

@AlexLopezGomez
Copy link
Copy Markdown
Owner

…opup

Helmet's default Cross-Origin-Opener-Policy: same-origin severs window.opener in the Firebase auth popup (quorum-be4ac.firebaseapp.com/__/auth/handler). With opener nulled, Firebase's postMessage credential handshake never arrives and the SDK throws auth/popup-closed-by-user on every OAuth attempt.

same-origin-allow-popups preserves the opener reference for popups we open while maintaining COOP protection for other contexts.

Summary

  • What problem does this change solve?
  • Why was this approach chosen?

Changes

  • Describe the main implementation changes

Validation

  • Tested locally
  • Updated docs if needed
  • Updated CHANGELOG.md if needed

Notes for Reviewers

  • Call out any risks, follow-ups, or areas where review context helps

…opup

Helmet's default Cross-Origin-Opener-Policy: same-origin severs window.opener
in the Firebase auth popup (quorum-be4ac.firebaseapp.com/__/auth/handler).
With opener nulled, Firebase's postMessage credential handshake never arrives
and the SDK throws auth/popup-closed-by-user on every OAuth attempt.

same-origin-allow-popups preserves the opener reference for popups we open
while maintaining COOP protection for other contexts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AlexLopezGomez AlexLopezGomez merged commit f348375 into main Mar 21, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant