Skip to content

项目使用 Element-UI,Nginx开启 CSP 移除 “unsafe-inline”,会报错 #131

@chengdengnan

Description

@chengdengnan
Image

Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the'unsafe-inline'keyword,a hash('sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='),or a nonce ('nonce-...') is required to enable inline execution.

有没有大哥遇到这种问题?应该要怎么处理吖?
请指教一下

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