I have been trying aws cloudfront sign package for a while, and i could get signedURL work to my cloudfront which means the cloudfront is setup properly. But there is an issue when i tried to use signed cookies in my cloudfront.
What could be the reasons for not working with signed cookies? And using postman to send cookies to the Cloudfront link for testing purpose.
Before passing the cookie values
After passing cookie values
Thank You
You can change your cookie preferences at any time by clicking Cookie preferences in the footer of the AWS site. You can manage browser cookies through your browser settings.
You can use signed URLs or signed cookies for any CloudFront distribution, regardless of whether the origin is an Amazon S3 bucket or an HTTP server.
This error can occur due to the default actions of AWS WAF rules associated with the CloudFront distribution. The following settings may cause a Request Blocked error: When the default action is set to Allow, the request matches a rule that has Action set to Block.
If the web browser or curl command returns an Access Denied error, then the object isn't publicly accessible. To allow public read access: Create a bucket policy that allows public read access for all objects in the bucket. Use the Amazon S3 console to allow public read access for the object.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With