Skip to content

Commit d55d2be

Browse files
authored
Delete CSP constant no longer used. (#303)
1 parent 8806c0b commit d55d2be

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packager/signer/signer.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ import (
4040
"github.com/pkg/errors"
4141
)
4242

43-
// The Content-Security-Policy in use by the AMP Cache today. Specifying here
44-
// provides protection for the publisher against bugs in the transformers, as
45-
// these pages will now run on the publisher's origin. In the future, this
46-
// value will likely be versioned along with the transforms.
47-
var contentSecurityPolicy = "default-src * blob: data:; script-src blob: https://cdn.ampproject.org/rtv/ https://cdn.ampproject.org/v0.js https://cdn.ampproject.org/v0/ https://cdn.ampproject.org/viewer/; object-src 'none'; style-src 'unsafe-inline' https://cdn.ampproject.org/rtv/ https://cdn.materialdesignicons.com https://cloud.typography.com https://fast.fonts.net https://fonts.googleapis.com https://maxcdn.bootstrapcdn.com https://p.typekit.net https://pro.fontawesome.com https://use.fontawesome.com https://use.typekit.net; report-uri https://csp-collector.appspot.com/csp/amp"
48-
4943
// The user agent to send when issuing fetches. Should look like a mobile device.
5044
const userAgent = "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) " +
5145
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile " +

0 commit comments

Comments
 (0)