Skip to content

CSP 4 feature request: cookie policyΒ #301

@AliceWonderMiscreations

Description

@AliceWonderMiscreations

I would love it if in CSP-4 a policy could be set regarding third party cookies. Default behavior should be always send (if no policy is set) but I would love the ability to say "Only send third party cookies for these domains" and the browser would simply refuse to send cookies, even if it has them, to any domain not in the white-list when requesting the resources.

It would make me feel a lot more comfortable about using some common CDNs out there like code.jquery.com if I knew for a fact that any cookies my users might have are simply not being sent with the request for jQuery.

The other day I disabled privacy badger to see what the facebook WP plugin was doing on a site I frequent - because the site was http, the iframe for the facebook like button was also http. And included a JS file that contained personal information about me. Sent over HTTP.

The site removed the plugin right away when I told them (I have screenshots from Inspect Element), but the carelessness of trackers is often so profound that I think a CSP 4 directive allowing the web application to specify a whitelist of where cookies may be sent would be of great benefit to users who don't know to install something like Privacy Badger.

As long as default is to send all cookies when there is no policy set, it would be completely backwards compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions