Skip to content

Commit 59fc084

Browse files
committed
fix(auth): override credentials header on OAuth CORS entries
1 parent 73742e5 commit 59fc084

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/sim/next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ const nextConfig: NextConfig = {
152152
{
153153
source: '/api/auth/oauth2/:path*',
154154
headers: [
155+
{ key: 'Access-Control-Allow-Credentials', value: 'false' },
155156
{ key: 'Access-Control-Allow-Origin', value: '*' },
156157
{ key: 'Access-Control-Allow-Methods', value: 'GET, POST, OPTIONS' },
157158
{
@@ -163,6 +164,7 @@ const nextConfig: NextConfig = {
163164
{
164165
source: '/api/auth/jwks',
165166
headers: [
167+
{ key: 'Access-Control-Allow-Credentials', value: 'false' },
166168
{ key: 'Access-Control-Allow-Origin', value: '*' },
167169
{ key: 'Access-Control-Allow-Methods', value: 'GET, OPTIONS' },
168170
{ key: 'Access-Control-Allow-Headers', value: 'Content-Type, Accept' },
@@ -171,6 +173,7 @@ const nextConfig: NextConfig = {
171173
{
172174
source: '/api/auth/.well-known/:path*',
173175
headers: [
176+
{ key: 'Access-Control-Allow-Credentials', value: 'false' },
174177
{ key: 'Access-Control-Allow-Origin', value: '*' },
175178
{ key: 'Access-Control-Allow-Methods', value: 'GET, OPTIONS' },
176179
{ key: 'Access-Control-Allow-Headers', value: 'Content-Type, Accept' },

0 commit comments

Comments
 (0)