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
F15625541: D19170.diff
Sun, May 18, 8:20 AM
Unknown Object (File)
Sat, May 10, 12:48 AM
Unknown Object (File)
Mon, Apr 28, 12:43 PM
Unknown Object (File)
Sun, Apr 27, 11:10 AM
Unknown Object (File)
Apr 4 2025, 4:53 PM
Unknown Object (File)
Apr 2 2025, 2:11 AM
Unknown Object (File)
Mar 29 2025, 4:09 PM
Unknown Object (File)
Mar 28 2025, 2:01 PM
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
Branch
csp9
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19728
Build 26721: Run Core Tests
Build 26720: arc lint + arc unit

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.