Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secure Cookies #231

Merged
merged 3 commits into from
Mar 16, 2016
Merged

Secure Cookies #231

merged 3 commits into from
Mar 16, 2016

Conversation

jmera
Copy link
Contributor

@jmera jmera commented Mar 15, 2016

See #145 for initial discussion

We would like to give users the ability to flag all cookies as secure: https://www.owasp.org/index.php/SecureFlag

@oreoshake
Copy link
Contributor

I'll drop 1.9.3 in the next major release, but for now please make travis happy.

end

def config(req)
req.env[SECURE_HEADERS_CONFIG] || Configuration.get(Configuration::DEFAULT_CONFIG)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oreoshake is there an easier way to access the config from this context?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

req.env[SECURE_HEADERS_CONFIG] should suffice.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, will help keep things dry

oreoshake added a commit that referenced this pull request Mar 16, 2016
@oreoshake oreoshake merged commit 76fb828 into github:master Mar 16, 2016
@oreoshake
Copy link
Contributor

Woot. I'll release this with #232 tomorrow.

@jmera
Copy link
Contributor Author

jmera commented Mar 16, 2016

🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants