Lukasz K
10/29/2021, 6:36 PMAshishkumar Pandey
10/29/2021, 7:14 PMLukasz K
11/01/2021, 7:18 PMthis.api = new sst.Api(this, "GlobalApi", {
defaultAuthorizationType: sst.ApiAuthorizationType.JWT,
defaultAuthorizer: cognitoGatewayAuth,
defaultAuthorizationScopes: [],
cors: {
allowOrigins: ['https://*'],
allowHeaders: ['authorization', 'roleid', 'companyid', 'accept-encoding', 'accept-language', 'content-type', 'referer', 'user-agent'],
maxAge: Duration.seconds(86400),
allowMethods: [<http://CorsHttpMethod.POST|CorsHttpMethod.POST>, CorsHttpMethod.PUT, CorsHttpMethod.GET, CorsHttpMethod.DELETE],
allowCredentials: false,
}
});
Lukasz K
11/01/2021, 7:20 PM?
will invoke a new prefetch for the same endpoint..