Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Figuring out proper CSP #27

@faust64

Description

@faust64

As I was trying to setup my usual nginx headers, serving the web worker behind a reverse proxy, adding SSL, ...

Here's the last error I can read in chrome console

maildrop.example.com/:30 Refused to load the stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' because it violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline' https://fonts.googleapis.com ".

Or:

Mixed Content: The page at 'https://maildrop.example.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600'. This request has been blocked; the content must be served over HTTPS.

Would require editing web/app/views/template.scala.html, although I'm not sure how to proceed to ensure HTTP clients won't suffer that issue ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions