surf icon indicating copy to clipboard operation
surf copied to clipboard

Support requiring requests to go to the configured base URL's origin

Open joshtriplett opened this issue 3 years ago • 2 comments

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

joshtriplett avatar May 09 '22 03:05 joshtriplett

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

Fishrock123 avatar May 10 '22 00:05 Fishrock123

@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.

joshtriplett avatar May 10 '22 05:05 joshtriplett