Skip to content

Conversation

joshtriplett
Copy link
Member

Add Config::set_mandatory_base_origin() to enable this behavior.
Useful if the Config includes authentication headers or similar.

Add `Config::set_mandatory_base_origin()` to enable this behavior.
Useful if the `Config` includes authentication headers or similar.
@Fishrock123
Copy link
Member

Should this be a cargo option? Or do you think it's better on Config like you have in this PR?

@joshtriplett
Copy link
Member Author

@Fishrock123 I definitely don't think it should be a cargo feature; that'd be backwards-incompatible for anyone not expecting that behavior, including other users elsewhere in the dependency tree that didn't set that feature.

I think it makes sense to set this on a config-by-config basis.

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