This comment has been minimized.
This comment has been minimized.
@Ivthillo this file would be placed in the CloudFront site it self (the starting page) where your Signed URL is redirecting the user to. The flow would look something like this...
Home this helps |
This comment has been minimized.
This comment has been minimized.
@darbelaez Thank you for the info. Did the setup but it seems the script expects a signed URL with a custom policy. Is this a requirement or can this work with a canned policy too? |
This comment has been minimized.
This comment has been minimized.
Thanks, got it working with the signed URL with custom policy. After doing it, it became clear how the custom policy is used by the signed cookies. |
This comment has been minimized.
This comment has been minimized.
Yes! forgot to mention that - i was using a Custom policy - did not try it with a Canned policy but i'm it can be made to work with one with some minor modification. Glad to hear it's working for you. |
This comment has been minimized.
This comment has been minimized.
@darbelaez I have created cookies successfully with your js and able to download m3u8 file through browser URL but still unable to access private video using CloudFront link on my domain. Am I missing something? |
This comment has been minimized.
Can I just put this script in S3? I've currently setup a CloudFront distribution with S3 as origin. I've uploaded this script in the bucket. When I create a signed URL to this script I'm able to visit the script in my browser but I'm missing some additional context here probably (I'm not a js developer).