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
F15469820: D19170.id45920.diff
Fri, Apr 4, 4:53 PM
F15463691: D19170.diff
Wed, Apr 2, 2:11 AM
F15454074: D19170.id45921.diff
Sat, Mar 29, 4:09 PM
F15450108: D19170.id.diff
Fri, Mar 28, 2:01 PM
F15444933: D19170.diff
Thu, Mar 27, 11:56 AM
F15434161: D19170.diff
Tue, Mar 25, 2:20 AM
F15380149: D19170.diff
Fri, Mar 14, 1:41 AM
Unknown Object (File)
Feb 14 2025, 10:51 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.