question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
CRS-migration-botcommented, May 13, 2020

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)

1reaction
CRS-migration-botcommented, May 13, 2020

User synonymous1984 commented on date 2016-11-24 17:39:41:

Ok - thanks for you help - appreciate it! 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found