allow cors
This commit is contained in:
parent
06b37a5170
commit
2360c2c745
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ava-node",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
|
|
@ -5,6 +5,11 @@ export async function GET({ params : { identifier } }) {
|
|||
return new Response(
|
||||
JSON.stringify(
|
||||
await getMetadataForIdentifier(identifier)
|
||||
)
|
||||
),
|
||||
{
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue