headers icon indicating copy to clipboard operation
headers copied to clipboard

Add From<Origin> implementation for AccessControlAllowOrigin

Open acerempel opened this issue 2 years ago • 0 comments

Currently the TryFrom<&str> implementation is the only way – as far as I can tell – to create an AccessControlAllowOrigin header for a specific origin. If you already have an Origin, it feels a bit silly to use TryFrom, since the conversion should be simple and infallible. This change adds that conversion.

acerempel avatar May 07 '22 15:05 acerempel