allow cors

This commit is contained in:
split / May 2024-08-23 00:24:12 -07:00
parent 06b37a5170
commit 2360c2c745
Signed by: split
GPG key ID: C325C61F0BF517C0
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ava-node",
"version": "1.3.1",
"version": "1.3.2",
"private": true,
"scripts": {
"dev": "vite dev",

View file

@ -5,6 +5,11 @@ export async function GET({ params : { identifier } }) {
return new Response(
JSON.stringify(
await getMetadataForIdentifier(identifier)
)
),
{
headers: {
"Access-Control-Allow-Origin": "*"
}
}
)
}