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