fix: cors stuff for matrix
This commit is contained in:
parent
12cd9f4fe6
commit
224ff2a6b4
|
@ -9,5 +9,10 @@ export async function GET(
|
||||||
);
|
);
|
||||||
const headers = { "content-type": "application/json" };
|
const headers = { "content-type": "application/json" };
|
||||||
const body = JSON.stringify(await response.json());
|
const body = JSON.stringify(await response.json());
|
||||||
return new Response(body, { headers });
|
return new Response(body, {
|
||||||
|
headers: {
|
||||||
|
...headers,
|
||||||
|
"Access-Control-Allow-Origin": "*",
|
||||||
|
},
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user