-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict with Cloudflare Web Application Firewall #4805
Comments
My first assumption was that the WAF kicks in because we save the full AMP HTML markup via the REST API, but preliminary testing by @LuckynaSan & @ernee showed that this doesn't happen in all cases. For example, some templates can be used and previewed/published just fine. But creating a blank new story fails every time with a 403 error. I haven't done any in-depth testing with various configurations yet myself, but I found some valuable old threads on this when Gutenberg faced the same issue:
Then, the OWASP ModSecurity Core Rule Set (CRS) added some exceptions for Gutenberg: |
In version 1.1.0 of the plugin there will be an experimental workaround for this. To enable:
|
Closing in favor of #5059 |
Thank You |
If you are coming from the support forums or encounter the following issue, please read carefully.
This is a tracking ticket for the work on ensuring Web Stories for WordPress does not cause issues with the Cloudflare Web Aplication Firewall (WAF) or similar solutions.
Rules that so far have been identified as possibly causing conflicts:
A similar conflict exists with Sucuri's WAF.
Who's affected?
The Cloudflare WAF is available to Pro, Business, and Enterprise plans.
How do I know I am affected?
You are likely affected when using Cloudflare's WAF offering and you are unable to save or publish stories using Web Stories for WordPress.
Workaround
Cloudflare:
Add a custom Firewall rule to disable the WAF for any Web Stories-related REST API requests, like so:
Sucuri:
Add
wp-json/web-stories
to the allowlist in the "Whitelist URL Paths" section.What is being done to fix this?
We are still investigating this issue and will update this thread with any new findings.
How can I follow progress on this issue?
Subscribe to this issue using the "Subscribe" button in the sidebar:
User reports so far
The text was updated successfully, but these errors were encountered: