mautrix / docs

Documentation for everything mautrix
https://docs.mau.fi
Creative Commons Attribution Share Alike 4.0 International
43 stars 54 forks source link

Hide proxy target's CORS header in nginx snippet #57

Closed dongcarl closed 9 months ago

dongcarl commented 1 year ago

Nginx's add_header directive can make it such that the Access-Control-Allow-Origin header is duplicated. Hide the header from the proxy response first before adding it.