[wp-trac] [WordPress Trac] #49812: 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: "default-src 'self' http: https: data: blob: 'unsafe-inline'".

WordPress Trac noreply at wordpress.org
Wed Nov 11 11:26:21 UTC 2020


#49812: 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: "default-src 'self' http: https: data: blob: 'unsafe-inline'".
-------------------------------+-----------------------
 Reporter:  anvme              |       Owner:  (none)
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+-----------------------
Changes (by nadiaam67):

 * status:  closed => reopened
 * resolution:  duplicate =>


Comment:

 I am having this error when clicking on theme customization.
 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: "default-src 'self' http: https: data: blob: 'unsafe-
 inline'".

 how can I resolve it?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49812#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list