Skip to content

Commit ad18ada

Browse files
Theodor N. EngøyTheodor N. Engøy
authored andcommitted
style: prettier
1 parent 262b555 commit ad18ada

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

examples/shared/src/authServer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ export function setupAuthServer(options: SetupAuthServerOptions): void {
106106
// WARNING: This configuration is for demo purposes only. In production, you should restrict this to specific origins and configure CORS yourself.
107107
authApp.use(
108108
cors({
109-
origin: [
110-
/^http:\/\/localhost(?::\d+)?$/,
111-
/^http:\/\/127\.0\.0\.1(?::\d+)?$/,
112-
/^http:\/\/\[::1\](?::\d+)?$/
113-
] // Default to localhost for demo safety. In production, configure this explicitly.
109+
origin: [/^http:\/\/localhost(?::\d+)?$/, /^http:\/\/127\.0\.0\.1(?::\d+)?$/, /^http:\/\/\[::1\](?::\d+)?$/] // Default to localhost for demo safety. In production, configure this explicitly.
114110
})
115111
);
116112

0 commit comments

Comments
 (0)