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

add knob to disable referer check #419

Merged
merged 1 commit into from
Oct 30, 2012
Merged

add knob to disable referer check #419

merged 1 commit into from
Oct 30, 2012

Conversation

joecaswell
Copy link

No description provided.

@bsparrow435
Copy link
Contributor

+1, should help some customers where the referrer thing gets in the way and they already have adequete security.

bsparrow435 pushed a commit that referenced this pull request Oct 30, 2012
add knob to disable referer check
@bsparrow435 bsparrow435 merged commit d978c2c into 1.2 Oct 30, 2012
@@ -235,7 +235,8 @@ any_to_bool(V) when is_boolean(V) ->
V.

is_forbidden(RD) ->
is_null_origin(RD) or not is_valid_referer(RD).
is_null_origin(RD) or
(app_helper:get_env(riak_kv,secure_referer_check,true) and not is_valid_referer(RD)).
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty sure you mean orelse and andalso here and not or and and

Copy link
Author

Choose a reason for hiding this comment

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

You are absolutely correct.

Do you have an opinion on whether this setting should also disable the null
origin check?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd lean toward yes.

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

Successfully merging this pull request may close these issues.

3 participants