[backend/masto-client] Add Idempotency-Key to allowed CORS headers

This commit is contained in:
Laura Hausmann 2024-02-20 22:59:58 +01:00
parent f83273c150
commit 5e91bed599
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -218,7 +218,7 @@ public static class ServiceExtensions
options.AddPolicy("mastodon", policy =>
{
policy.WithOrigins("*")
.WithHeaders("Authorization", "Content-Type")
.WithHeaders("Authorization", "Content-Type", "Idempotency-Key")
.WithExposedHeaders("Link", "Connection", "Sec-Websocket-Accept", "Upgrade");
});
});