Artemiy Davydov
03/14/2022, 5:40 PMallowOrigins: ['*']
I got CORS error WildcardOriginNotAllowed
Jan Plaček
03/14/2022, 5:41 PMallowCredentials: true
Jan Plaček
03/14/2022, 5:42 PMArtemiy Davydov
03/14/2022, 5:43 PMallowCredentials: true
?Jan Plaček
03/14/2022, 5:43 PMallowCredentials: false
to me works fine for devel, even though Authorization
header is used, dunno how is it possibleJan Plaček
03/14/2022, 5:43 PM{
allowOrigins: ['*'],
allowMethods: [CorsHttpMethod.ANY],
allowCredentials: false, // TODO investigate why it can be false when sending authorization header
allowHeaders: ['Authorization', 'content-type'],
}
snippet from my stack 😄Jan Plaček
03/14/2022, 5:45 PMArtemiy Davydov
03/14/2022, 5:52 PMJan Plaček
03/14/2022, 6:06 PMAuthorization
header. Anyway whitelisting localhost explicitly worked fine as well.