You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, today, I'm trying send a request for my API and I need send an custom header option: "x-token".
Validate is fine, but, I recive these error:
{"statusCode":400,"error":"Bad Request","message":"host is not allowed. connection is not allowed. content-length is not allowed. cache-control is not allowed. origin is not allowed. content-type is not allowed. user-agent is not allowed. postman-token is not allowed. accept is not allowed. accept-encoding is not allowed. accept-language is not allowed","validation":{"source":"headers","keys":["host","connection","content-length","cache-control","origin","content-type","user-agent","postman-token","accept","accept-encoding","accept-language"]}}
and my post request is:
data:
{
"action": "OMD"
}
headers: x-token: '12345678900987654321'
How I can solve this problem? Cors is enabled;
The text was updated successfully, but these errors were encountered:
What are you using to try to test this endpoint? Are you using Postman by any chance? If you are, try using curl directly and see if that changes anything.
It would also help if you posted the route configuration as well.
Hello!
I'm here again 👊
Well, today, I'm trying send a request for my API and I need send an custom header option: "x-token".
Validate is fine, but, I recive these error:
and my post request is:
data:
{
"action": "OMD"
}
headers: x-token: '12345678900987654321'
How I can solve this problem? Cors is enabled;
The text was updated successfully, but these errors were encountered: