More CORS Shenanigans
This commit is contained in:
parent
720a043588
commit
fab12ff6ea
@ -12,7 +12,11 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
|
|||||||
{headers: {'Api-Key': apiKey, 'Content-Type': 'application/json'}});
|
{headers: {'Api-Key': apiKey, 'Content-Type': 'application/json'}});
|
||||||
const data = await response.data;
|
const data = await response.data;
|
||||||
return {
|
return {
|
||||||
headers: {'Content-Type': 'application/json'},
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'Access-Control-Allow-Origin': 'https://cameras.immersiveidea.com',
|
||||||
|
'Access-Control-Allow-Credentials': 'true'
|
||||||
|
},
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user