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, Apr 13, 12:49 PM
Unknown Object (File)
Sun, Mar 31, 7:29 AM
Unknown Object (File)
Sun, Mar 31, 2:18 AM
Unknown Object (File)
Thu, Mar 28, 10:20 AM
Unknown Object (File)
Tue, Mar 26, 4:56 PM
Unknown Object (File)
Feb 7 2024, 9:08 PM
Unknown Object (File)
Nov 30 2023, 1:32 AM
Unknown Object (File)
Nov 17 2023, 9:58 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
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.