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
F18814857: D20163.id48168.diff
Tue, Oct 21, 12:01 AM
F18814855: D20163.id48147.diff
Tue, Oct 21, 12:00 AM
F18814853: D20163.id.diff
Tue, Oct 21, 12:00 AM
F18811636: D20163.diff
Mon, Oct 20, 4:02 AM
F18791585: D20163.diff
Thu, Oct 16, 3:30 PM
F18780742: D20163.id.diff
Sun, Oct 12, 7:19 PM
F18779605: D20163.diff
Sat, Oct 11, 2:37 PM
F18768489: D20163.id48147.diff
Wed, Oct 8, 3:52 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.