Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
This repository was archived by the owner on May 24, 2022. It is now read-only.

Set CSP in meta tag #516

@amaury1093

Description

@amaury1093

Right now, in production mode, we are setting CSP on onHeadersReceived

https://github.com/paritytech/fether/blob/d0ae207176fd28b8e986e01499f749c4e676c40a/packages/fether-electron/src/main/app/methods/setupRequestListeners.js#L40-L53

However, this doesn't actually set the CSPs: https://electronjs.org/docs/tutorial/security#csp-meta-tag.

We need to manually add a <meta> tag in index.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions