Skip to content

Commit 21e4a38

Browse files
authored
feat(api): Allow localhost by default in CORS (#1772)
1 parent 3f8117b commit 21e4a38

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ async function bootstrap(): Promise<void> {
3838
const config = app.get(ApiConfigService);
3939
const logger = app.get(LoggerService);
4040

41-
const defaultOrigins = [/ironfish.network$/];
41+
const defaultOrigins = [/ironfish.network$/, /localhost/];
4242
const enabledOrigins = config.isStaging()
4343
? [
4444
...defaultOrigins,
45-
/localhost/,
4645
/block-explorer.*ironfish\.vercel\.app$/,
4746
/oreowallet-bridge.*ironfish\.vercel\.app$/,
4847
]

0 commit comments

Comments
 (0)