flrgh / doorbell

a flexible forward-auth server
3 stars 1 forks source link

fix(api): add content-type to allowed CORS headers #52

Closed flrgh closed 1 year ago

flrgh commented 1 year ago

Turns out that Content-Type is allowed by default for CORS purposes, but only for the following mime types:

Explicitly allowing it via Access-Control-Allow-Headers opens it up to any mime type.

See also: