[wp-trac] [WordPress Trac] #39941: Allow using Content-Security-Policy without unsafe-inline

WordPress Trac noreply at wordpress.org
Fri Oct 22 11:08:03 UTC 2021


#39941: Allow using Content-Security-Policy without unsafe-inline
-------------------------------------------------+-------------------------
 Reporter:  tomdxw                               |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  5.7
Component:  Security                             |     Version:  4.8
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:  javascript
  has-dev-note                                   |
-------------------------------------------------+-------------------------

Comment (by jmlapam):

 Replying to [comment:97 enricocarraro]:
 > Replying to [comment:96 jmlapam]:
 > > Does someone know if there's now built-in alternative to "unsafe-
 inline" ?
 > Can you be more clear about what built-in means?


 Is there an API to add nonces or any other id mechanism for inline scripts
 and styles?

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


More information about the wp-trac mailing list