I've configured CloudFront to S3 with a static page and the second behavior on API Gateway with a simple API. The static page works fine but I have a problem with API Gateway because when I try to send a request to API then I got an error 'missing authentication token'. I've configured allowed headers but still, I get this error. API Gateway connects with AWS lambda.
I want to have on / simple static page but on /somePath path API which handles a request from static page.
Have you some ideas about what exactly can be wrong?