@frontegg/client
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -11,5 +11,5 @@ import { FronteggPermissions } from '../permissions'; | ||
contextResolver: fronteggContextResolver; | ||
enableCors?: boolean; | ||
disableCors?: boolean; | ||
} | ||
export declare function frontegg(options: IFronteggOptions): (req: any, res: any) => Promise<void>; | ||
export {}; |
@@ -184,3 +184,3 @@ "use strict"; | ||
logger_1.default.debug("proxyReq - returned for " + req.originalUrl); | ||
if (options.enableCors) { | ||
if (!options.disableCors) { | ||
enableCors(req, proxyRes); | ||
@@ -187,0 +187,0 @@ } |
{ | ||
"name": "@frontegg/client", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "Frontegg Javascript Library for backend", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
41955