Closed UInSomnia closed 8 months ago
The problem is solved! The request consists of two parts - Option and Post. Option comes first - it does not contain JSON. That is, I added the following code to the beginning of the filter and everything worked fine
if (req->getMethod() == drogon::HttpMethod::Options)
{
return fccb();
}
Hello!
I'm trying to get json from a request in the filter for further analysis of this data by the filter. But I get a null pointer Is there any way to get json from a request in a filter? Thanks for the answers!