-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows it to be backwards compatible with the existing gem, as discussed in 58bits/cloudfront-signer#5 ## Usage: ```ruby # In a controller, before serving the images before_action :set_cookie def set_cookie signed_params = AWS::CF::Signer.signed_params( nil, resource: 'http://images.example.com/*', expires: 1.day.from_now ) signed_params.each do |name, value| cookies["CloudFront-#{name}"] = { value: value, domain: :all, httponly: true } end end ```
- Loading branch information
1 parent
d6c350f
commit fedcc31
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters