Added api-key header.
This commit is contained in:
parent
fb9f9e87c4
commit
6e16c409de
@ -19,7 +19,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
|
|||||||
break;
|
break;
|
||||||
case 'OPTIONS':
|
case 'OPTIONS':
|
||||||
const headers = {
|
const headers = {
|
||||||
'Access-Control-Allow-Origin': '*',
|
'Access-Control-Allow-Origin': 'https://cameras.immersiveidea.com',
|
||||||
'Access-Control-Allow-Headers': 'content-type, api-key',
|
'Access-Control-Allow-Headers': 'content-type, api-key',
|
||||||
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE'
|
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE'
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user