Title: Cannot create post/custom type post
Last modified: July 10, 2026

---

# Cannot create post/custom type post

 *  [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [3 days, 22 hours ago](https://wordpress.org/support/topic/cannot-create-post-custom-type-post/)
 * Hello, I have a strange problem when NinjaFirewall is activated in WP 7.0+ When
   I create a new post, the content field cannot is missing. I cannot add a title
   and content. If I deactivate NinjaF, there is no problem.
 * I had the same problem, but only when editing blocks compositions, with WP 6.9
   + (and maybe previous version.
 * And last strange thing : I have no problem with my test site (same webhoster).
   So it does not work only for my sites in production.
 * I’ve tried with all plugins deactivated and default theme.
    -  This topic was modified 3 days, 22 hours ago by [Li-An](https://wordpress.org/support/users/li-an/).

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

 *  Plugin Contributor [bruandet](https://wordpress.org/support/users/bruandet/)
 * (@bruandet)
 * [3 days, 15 hours ago](https://wordpress.org/support/topic/cannot-create-post-custom-type-post/#post-18962312)
 * Do you see anything in the firewall log? Any blocked requests (e.g. admin AJAX,
   REST API etc)?
 * Check also your browser’s console when trying to edit the post : `CTRL + shift
   + j`. That could be a JS problem related to the _Firewall Policies > Advanced
   Policies > HTTP response headers_.
 *  Thread Starter [Li-An](https://wordpress.org/support/users/li-an/)
 * (@li-an)
 * [3 days, 13 hours ago](https://wordpress.org/support/topic/cannot-create-post-custom-type-post/#post-18962345)
 * Thanks for your quick answer. Deactivating _Set [Content-Security-Policy](https://blog.nintechnet.com/securing-wordpress-with-a-web-application-firewall-ninjafirewall/#advanced-policies)
   for the WordPress admin dashboard_ does the trick.
 * If I look at the Console, I have
 * _Loading the stylesheet ‘[https://fonts.bunny.net/css?family=Roboto:400,500,700&#8217](https://fonts.bunny.net/css?family=Roboto:400,500,700&#8217);
   violates the following Content Security Policy directive: “style-src ‘self’ ‘
   unsafe-inline’ *.googleapis.com *.google.com *.jquery.com”. Note that ‘style-
   src-elem’ was not explicitly set, so ‘style-src’ is used as a fallback. The action
   has been blocked._
 * 
   _Framing ‘blob:[https://www.li-an.fr/d457286f-aeca-485a-aeee-c12c1502ae44&#8217](https://www.li-an.fr/d457286f-aeca-485a-aeee-c12c1502ae44&#8217);
   violates the following Content Security Policy directive: “child-src ‘self’ *.
   videopress.com *.google.com”. The request has been blocked. Note that ‘frame-
   src’ was not explicitly set, so ‘child-src’ is used as a fallback.
 * _101.js:1 Loading the script ‘[https://js.stripe.com/clover/stripe.js&#8217](https://js.stripe.com/clover/stripe.js&#8217);
   violates the following Content Security Policy directive: “script-src ‘self’ ‘
   unsafe-inline’ ‘unsafe-eval’ *.videopress.com *.google.com *.wp.com”. Note that‘
   script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback.
   The action has been blocked._

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-create-post-custom-type-post%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Li-An](https://wordpress.org/support/users/li-an/)
 * Last activity: [3 days, 13 hours ago](https://wordpress.org/support/topic/cannot-create-post-custom-type-post/#post-18962345)
 * Status: not resolved