Allow JSON requests
See original GitHub issue_Issue originally created by user synonymous1984 on date 2016-11-24 13:43:07. Link to original issue: https://github.com/SpiderLabs/owasp-modsecurity-crs/issues/658._
Hi there,
I´m using the latest release of crs. My issue is, that requests to our REST API are blocked with the following exception:
ModSecurity: JSON support was not enabled
ModSecurity: Access denied with code 400 (phase 2). Match of "eq 0" against "REQBODY_ERROR" required.
Haven´t found many informations on that topic - can anybody give me a hint?
Thanks a lot 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:18
Top Results From Across the Web
REST API - Use the "Accept: application/json" HTTP Header
When I make a request, I get a response in XML, but what I need is JSON. In the doc it is stated...
Read more >JSON requests and responses - Atlassian Developer
Representations for requests. Instead of XML you may provide and accept entities as JSON , a simpler and more concise format.
Read more >Python Post JSON using requests library - PYnative
In this article, I will let you know how to post a JSON from a client to a server using a requests library....
Read more >How do I get JSON from the server? [Python Code] - ReqBin
To request JSON from a server using Python, you need to send an HTTP GET request to the server and provide the Accept:...
Read more >response.json() - Working with JSON in Python requests
In this tutorial, you'll learn how to parse a Python requests response as JSON and convert it to a Python dictionary. Whenever the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
User inittab commented on date 2016-11-25 08:12:24:
Hi there,
JSON support was enabled in Debian’s package version 2.8.0-4 (Nov 2014). You may use backports.debian.org to install the latest modsecurity release in Jessie. Just to keep KNOWN_BUGS correct 😃
Regards,
Alberto (Debian maintainer)
User synonymous1984 commented on date 2016-11-24 17:39:41:
Ok - thanks for you help - appreciate it! 👍