Skip to content

Commit 49438d8

Browse files
committed
fix: allow localhost connection in CSP
1 parent f17932f commit 49438d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/security-headers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export default defineNuxtModule({
3232
'https://api.npmjs.org',
3333
'https://npm.antfu.dev',
3434
...ALL_KNOWN_GIT_API_ORIGINS,
35+
// Local CLI connector (npmx CLI communicates via localhost)
36+
'http://127.0.0.1:*',
3537
].join(' ')
3638

3739
const frameSrc = ['https://bsky.app', 'https://pdsmoover.com'].join(' ')

0 commit comments

Comments
 (0)