Page MenuHomePhabricator

Fix Content-Security-Policy headers on "Email Login" page
ClosedPublic

Authored by epriestley on Feb 13 2019, 11:34 PM.
Tags
None
Referenced Files
F15447072: D20163.id.diff
Thu, Mar 27, 9:43 PM
F15446863: D20163.id48168.diff
Thu, Mar 27, 8:35 PM
F15436731: D20163.diff
Tue, Mar 25, 4:16 PM
F15420291: D20163.diff
Fri, Mar 21, 12:50 PM
Unknown Object (File)
Feb 24 2025, 2:30 AM
Unknown Object (File)
Feb 23 2025, 4:03 PM
Unknown Object (File)
Feb 22 2025, 8:32 AM
Unknown Object (File)
Feb 18 2025, 3:50 AM
Subscribers
None

Details

Summary

In D20100, I changed this page from returning a newPage() with a dialog as its content to returning a more modern newDialog().

However, the magic to add stuff to the CSP header is actually only on the newPage() pathway today, so this accidentally dropped the extra "Content-Security-Policy" rule for Google.

Lift the magic up one level so both Dialog and Page responses hit it.

Test Plan
  • Configured Recaptcha.
  • Between D20100 and this patch: got a CSP error on the Email Login page.
  • After this patch: clicked all the pictures of cars / store fronts.

Diff Detail

Repository
rP Phabricator
Branch
csp1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21991
Build 30036: Run Core Tests
Build 30035: arc lint + arc unit

Event Timeline

In D20100, I changed this page...

Oh, this is missing some context -- that is, the "forgot password?" / "email login" page. See https://discourse.phabricator-community.org/t/phabricator-recaptcha-at-forgot-password-page/2395/ for context.

This revision is now accepted and ready to land.Feb 14 2019, 8:22 PM
This revision was automatically updated to reflect the committed changes.