-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added decorator exclude_xframe_options_header #40
Conversation
bb39752
to
cb0695e
Compare
So the interface for using this feature is: @exclude_xframe_options_header
def my_view():
# ... Another option would be something like: def my_view():
# ...
response = flask.render_template("template")
response.headers["x-frame-options"] = "allowall"
return response And then we would write the So I can't quite decide what is best here. |
This was my first choice until I searched what is the default value for As an improvement of the current change, we can mix these two options so if we need to set the values |
Yes I agree with all that. Let's do both =) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, assuming you put in the conditional =)
cb0695e
to
905a057
Compare
I did! 😃 |
Done
exclude_xframe_options_header
to avoid the security headerX-Frame-Options
with the valueSAMEORIGIN
QA
QA this change with canonical/snapcraft.io#3337