Title: Why does WP not include coding for including nonces for inline scripts?
Last modified: December 26, 2024

---

# Why does WP not include coding for including nonces for inline scripts?

 *  Resolved [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/why-does-wp-not-include-coding-for-including-nonces-for-inline-scripts/)
 * I’ve had to resort to using the CSP-ANTS&ST plugin to include nonces for inline
   scripts, however, it has not been updated. But something like this plugin should
   be standard with WordPress, I believe. It has been recommended for years that
   websites include nonces for scripts for CSP. And yet, WordPress provides nothing.
   Shouldn’t this be built in?
 * The CSP-ANTS&ST plugin seems to work very well, and it is very simple. Why can’t
   WP do something even better to help with this very basic security need?
    -  This topic was modified 1 year, 5 months ago by [jamminjames](https://wordpress.org/support/users/jamminjames/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/why-does-wp-not-include-coding-for-including-nonces-for-inline-scripts/#post-18216978)
 * Please feel free to request that from the devs.
 * Follow the process at [https://make.wordpress.org/core/handbook/testing/reporting-bugs/](https://make.wordpress.org/core/handbook/testing/reporting-bugs/)
   but choose “Enhancement” for your report type.
 *  Thread Starter [jamminjames](https://wordpress.org/support/users/jamminjames/)
 * (@jamminjames)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/why-does-wp-not-include-coding-for-including-nonces-for-inline-scripts/#post-18217129)
 * The link goes to a place that explains how to report a “bug”… I wouldn’t really
   call this a bug, just a feature that should be included in the core WordPress.
   Where can I file a feature request like that? I looked, can’t find anything.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/why-does-wp-not-include-coding-for-including-nonces-for-inline-scripts/#post-18217131)
 * Yes, that’s why I added “but choose ‘Enhancement’ for your report type.”
 * Making a formal feature request is the same process as reporting a bug, but you
   choose “Enhancement” for the report type instead of “Bug”.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Why does WP not include coding for including nonces for inline scripts?’
is closed to new replies.

## Tags

 * [CSP](https://wordpress.org/support/topic-tag/csp/)
 * [nonces](https://wordpress.org/support/topic-tag/nonces/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/why-does-wp-not-include-coding-for-including-nonces-for-inline-scripts/#post-18217131)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
