Added api-key header.
This commit is contained in:
parent
4cd0423578
commit
fb9f9e87c4
@ -20,7 +20,7 @@ export const handler: Handler = async (event: HandlerEvent, context: HandlerCont
|
|||||||
case 'OPTIONS':
|
case 'OPTIONS':
|
||||||
const headers = {
|
const headers = {
|
||||||
'Access-Control-Allow-Origin': '*',
|
'Access-Control-Allow-Origin': '*',
|
||||||
'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'
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user