Add Cross-Origin-Opener-Policy header to CSP documentation for AppKit social login security #604
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds documentation for the
Cross-Origin-Opener-Policy: same-origin-allow-popups
header to the Content Security Policy documentation, specifically to protect AppKit Social Login customers from tabnabbing attacks.Changes made:
advanced/security/content-security-policy.mdx
.cspell.json
to include "tabnabbing" as an allowed word to resolve spell check errorsThis addresses the security recommendation from the Tabnabbing Phishing Attack executive summary to help protect users during OAuth flows with social providers like Google, GitHub, Discord, Apple, Facebook, and Farcaster.
Tests
pnpm run spell
and confirmed no spelling errors (0 issues found in 696 files)Important Review Points
Header placement: The Cross-Origin-Opener-Policy header is shown within the CSP code block, but it's technically a separate HTTP header. Please verify if this presentation is clear to developers or if it should be shown separately.
Security guidance accuracy: Please review the technical accuracy of the tabnabbing protection explanation and confirm that
same-origin-allow-popups
is the appropriate value for all AppKit social login scenarios.Documentation consistency: Verify the new Note section follows the existing documentation patterns and formatting standards.
Direct link to the deployed preview files
Link to Devin run: https://app.devin.ai/sessions/c0e51c0e0be34f9083c1bd4fbb70272e
Requested by: TomTom (tomas.rawski@reown.com)
This change implements the security recommendation from the DevRel team (Derek Rein) to document the Cross-Origin-Opener-Policy header for AppKit Social Login customers to minimize tabnabbing attack risks.