Forbidden Error

After a serverless remove and deploy again. I am getting:

{
“message”: “Forbidden”
}

X-Cache →Error from cloudfront
x-amzn-ErrorType →ForbiddenException

From my POST request.

Were you able to resole this? I am getting the same error on OPTIONS call.

When you remove and deploy you’ll get a new hostname for the API GW. Every time I’ve done that and received a forbidden message it’s because I’ve forgotten to update the hostname somewhere and it’s calling the old hostname.

I am also facing the same issue on POST request.
Is there any workaround to fix this issue?