WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conflicts with CSP 'nonce' policy #136

@hazeebawan

Description

@hazeebawan

Eva uses Isomorphic-style-loader to load animation styles into the document. If site has a CSP policy of style-src: 'nonce-xyz', it prevents the eva styles from getting loaded.

Both angular and webpack provide ways to use nonce with the inline styles they append:

webpack: https://webpack.js.org/loaders/style-loader/#nonce
angular: https://angular.dev/best-practices/security#content-security-policy

We can utilize either of these mechanisms and develop an approach to resolve this conflict.

Want to hear what community thinks of this?

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