@frontegg/client
Advanced tools
Comparing version 1.0.37 to 1.0.38
@@ -11,4 +11,5 @@ import { FronteggPermissions } from '../permissions'; | ||
contextResolver: fronteggContextResolver; | ||
enableCors?: boolean; | ||
} | ||
export declare function frontegg(options: IFronteggOptions): (req: any, res: any) => Promise<void>; | ||
export {}; |
@@ -184,3 +184,5 @@ "use strict"; | ||
logger_1.default.debug("proxyReq - returned for " + req.originalUrl); | ||
enableCors(req, proxyRes); | ||
if (options.enableCors) { | ||
enableCors(req, proxyRes); | ||
} | ||
if (!(proxyRes.statusCode === 401)) return [3 /*break*/, 3]; | ||
@@ -187,0 +189,0 @@ req.frontegg.retryCount = req.frontegg.retryCount + 1; |
{ | ||
"name": "@frontegg/client", | ||
"version": "1.0.37", | ||
"version": "1.0.38", | ||
"description": "Frontegg Javascript Library for backend", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
41576
817