Skip to content

Make the Content Security Policy for new accounts less aggressive #484

@hf02

Description

@hf02

It seems that recently created accounts have a different and more restrictive Content Security Policy. As someone has encountered on Reddit, this breaks Cusdis.

Here's the policy on an account I just made:

content-security-policy: upgrade-insecure-requests; default-src * 'unsafe-inline' 'unsafe-eval' data: blob:; connect-src 'self'; form-action 'self'; img-src * data:; script-src * 'unsafe-inline' 'unsafe-eval'; style-src * 'unsafe-inline'; font-src * data:; object-src *; media-src *; frame-src *;

And on my ~3 year old account:

content-security-policy: upgrade-insecure-requests; default-src 'unsafe-inline' 'unsafe-eval' 'self' data: blob: *

I just want to clarify for others:

This only prevents fetch() and <form> from making requests to another website, which can break some widgets that are added with a script tag. However, this does not prevent hotlinking images, scripts, styles, fonts, audio, videos, and flash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions