surf icon indicating copy to clipboard operation
surf copied to clipboard

Mandatory base URL support in config

Open joshtriplett opened this issue 3 years ago • 1 comments

I'd like to set a flag in Config that forces the resulting Client to only use URIs relative to the specified base URI, and never support absolute URIs.

This would add security when providing authentication: the config could add_header a header containing authentication information, and also set a mandatory base URI to ensure that the Client can't accidentally pass that authentication information to any other domain.

joshtriplett avatar May 09 '22 02:05 joshtriplett

https://github.com/http-rs/surf/pull/343

joshtriplett avatar May 09 '22 03:05 joshtriplett