mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-11-28 18:08:54 +03:00
[bugfix] Add idempotency-key to allowed CORS headers (#1670)
This commit is contained in:
parent
9c209fe6e4
commit
b847af1dbd
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ func CORS() gin.HandlerFunc {
|
||||||
// needed to pass oauth bearer tokens
|
// needed to pass oauth bearer tokens
|
||||||
"Authorization",
|
"Authorization",
|
||||||
|
|
||||||
|
// Some clients require this; see:
|
||||||
|
// - https://docs.joinmastodon.org/methods/statuses/#headers
|
||||||
|
// - https://github.com/superseriousbusiness/gotosocial/issues/1664
|
||||||
|
"Idempotency-Key",
|
||||||
|
|
||||||
// needed for websocket upgrade requests
|
// needed for websocket upgrade requests
|
||||||
"Upgrade",
|
"Upgrade",
|
||||||
"Sec-WebSocket-Extensions",
|
"Sec-WebSocket-Extensions",
|
||||||
|
|
Loading…
Reference in a new issue