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)
Fri, Nov 22, 5:18 AM
Unknown Object (File)
Wed, Oct 30, 3:46 AM
Unknown Object (File)
Oct 23 2024, 5:12 AM
Unknown Object (File)
Oct 14 2024, 12:01 PM
Unknown Object (File)
Oct 12 2024, 12:58 AM
Unknown Object (File)
Sep 26 2024, 4:13 PM
Unknown Object (File)
Sep 6 2024, 2:39 AM
Unknown Object (File)
Sep 6 2024, 2:39 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.