Skip to content

Could you please guide how solved this problem #1344

@iamtechnicalsuresh

Description

@iamtechnicalsuresh

Hello
Good Evening
I am facing this problem after hosting in production. My team is not allowing to enable unsafe-eval in nginx config without that this problem is keep coming alpine.js related features are not working for django-admin.

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'
at new AsyncFunction ()
at alpine.js:5:665
at jn (alpine.js:5:889)
at Fn (alpine.js:5:934)
at xt (alpine.js:5:302)
at x (alpine.js:5:180)
at vn (alpine.js:5:33734)
at r (alpine.js:5:2323)
at n (alpine.js:5:2353)
at fr (alpine.js:5:2363)

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