Page MenuHomePhabricator

Include the primary domain in the Content-Security-Policy explicitly if there's no CDN
ClosedPublic

Authored by epriestley on Mar 2 2018, 3:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 25, 12:27 AM
Unknown Object (File)
Sat, Jan 25, 12:27 AM
Unknown Object (File)
Sat, Jan 25, 12:27 AM
Unknown Object (File)
Sat, Jan 25, 12:27 AM
Unknown Object (File)
Wed, Jan 22, 10:54 AM
Unknown Object (File)
Tue, Jan 21, 9:22 AM
Unknown Object (File)
Sat, Jan 18, 6:55 AM
Unknown Object (File)
Fri, Jan 3, 2:08 AM
Subscribers
None

Details

Summary

Ref T4340. If you don't configure a CDN and visit a custom site (like a Phame blog site, or a CORGI sandbox internally) we serve resources from the main site. This violates the Content-Security-Policy.

When there's no CDN, include the primary domain in the CSP explicitly.

Test Plan

Loaded local.www.phacility.com, got resources.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 2 2018, 3:42 PM
This revision was automatically updated to reflect the committed changes.