豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Secure Cookies#231

Merged
oreoshake merged 3 commits intogithub:masterfrom
jmera:secure-cookies
Mar 16, 2016
Merged

Secure Cookies#231
oreoshake merged 3 commits intogithub:masterfrom
jmera:secure-cookies

Conversation

@jmera
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Comment thread lib/secure_headers/middleware.rb Outdated
end

def config(req)
req.env[SECURE_HEADERS_CONFIG] || Configuration.get(Configuration::DEFAULT_CONFIG)
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@jmera
Copy link
Copy Markdown
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