diff --git a/index.d.ts b/index.d.ts index 3abb4d1..87309ea 100644 --- a/index.d.ts +++ b/index.d.ts @@ -600,3 +600,10 @@ export function isBandwidthLimitExceeded(response: unknown): boolean; export function isNotExtended(response: unknown): boolean; export function isNetworkAuthenticationRequired(response: unknown): boolean; + +export class HEADERS { + corsBasic: { + 'Access-Control-Allow-Origin': '*'; + 'Access-Control-Allow-Credentials': true; + }; +} diff --git a/index.js b/index.js index 08b0530..3d26fd5 100644 --- a/index.js +++ b/index.js @@ -767,3 +767,10 @@ export const isNotExtended = (response) => { export const isNetworkAuthenticationRequired = (response) => { return response.statusCode === 511; }; + +export const HEADERS = { + corsBasic: { + 'Access-Control-Allow-Origin': '*', + 'Access-Control-Allow-Credentials': true, + }, +}; diff --git a/package.json b/package.json index f04c149..58ccf9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lambda-returns", - "version": "3.0.4", + "version": "3.0.5", "main": "index.js", "module": "index.js", "types": "./index.d.ts",