forked from mirrors/iceshrimp
11 lines
302 B
TypeScript
11 lines
302 B
TypeScript
import { MastoContext } from "@/server/api/mastodon/index.js";
|
|
|
|
const headers = {
|
|
"Access-Control-Expose-Headers": "Link,Connection,Sec-Websocket-Accept,Upgrade"
|
|
};
|
|
|
|
export async function SetHeadersMiddleware(ctx: MastoContext, next: () => Promise<any>) {
|
|
ctx.set(headers);
|
|
await next();
|
|
}
|