fix: cors stuff for matrix

This commit is contained in:
Jack Merrill 2023-07-19 21:29:39 -05:00
parent 12cd9f4fe6
commit 224ff2a6b4
No known key found for this signature in database
GPG Key ID: B8E3CDF57DD80CA5

View File

@ -9,5 +9,10 @@ export async function GET(
);
const headers = { "content-type": "application/json" };
const body = JSON.stringify(await response.json());
return new Response(body, { headers });
return new Response(body, {
headers: {
...headers,
"Access-Control-Allow-Origin": "*",
},
});
}