MikeBild / sveltekit-adapter-aws

A SvelteKit adapter for AWS using the AWS-CDK
MIT License
135 stars 31 forks source link

I got an error "Access Denied", except path "/" #40

Open kimjangwook opened 1 year ago

kimjangwook commented 1 year ago

Describe the bug I deployed my project using this adapter, it seems work well. But when I access the another page using link, I got an AccessDenied error from CloudFront(maybe). I don't know what is the problem, and what is wrong.

To Reproduce Steps to reproduce the behavior:

  1. Deploy an application
  2. Access login page using link
  3. See error

Expected behavior I can access another page using link

Screenshots

access denied

Additional context I set ORIGIN value to my .env file. And that value was set on lambda.