Access Denied Signed Cookies AWS

I found the answer, in the option parameters, we have to define the expiry time according to the documentation.

Otherwise the default time will get expired in the library I used.


Your signed cookies are working based on the information above. Looks like the resource you are trying to access does not exist or permission denied.

If you are accessing to S3 bucket, make sure it is set to public read. If you are accessing via API Gateway, make sure you can access those URL's without cloudfront.


Wildcards in the resource URLs of canned policies were not working for me. I had to use a custom policy for wildcards to work. In addition, make sure if you are signing the cookies for an HTTPS url you are testing your requests with an HTTPS url (obvious but easy to mess up)