I am trying to create a lambda service on AWS and have it accessed from outside via the API gateway with no authentication or restriction required.
To make things ea
If Authorization
and API KEY Required
both are set to true for the method, then make sure you have the following Headers while sending the request:
I use POSTMAN
for API testing which is quite reliable and then it's preety straight forward.
Note: Do not add x-api key header if you have set API KEY REQUIRED
as FALSE.
And if you have set AUTHORIZATION
as FALSE then do not add Authorization header.
Putting my experience over here as well. I tried all those things above and it turned out that putting the domain with a wildcard solved my {"message":"Forbidden"} issue: *.mydomain.com