Cloudfront cookie signing doesn't work with wildcards? #4539
Unanswered
dprice-andros
asked this question in
Q&A
Replies: 2 comments
-
I figured this out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
According to https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-setting-signed-cookie-custom-policy.html we can use wildcards in the "resource" (which shows up in javascript sdk as
url
).In my testing using this code, wildcards don't work - I get 403 access denied, but if use a single url like
index.html
orfavicon.png
it does.Am I doing something wrong or is there a bug here? https://stackoverflow.com/a/73092425/567493 shows code that is identical to what i'm doing here, this is looking more and more like a bug.
version from package.json: "@aws-sdk/cloudfront-signer": "^3.451.0"
in case it is interesting, I'm testing with postman using a
Cookie
header with contents from:I have gotten it to work with the canned policy using https://{domain}/index.html, so i know this postman setup can work.
Beta Was this translation helpful? Give feedback.
All reactions