Commit c71539e
committed
fix(cli): allow any localhost port in CORS config
When port 3000 is unavailable, Nuxt/Vite automatically picks an alternative port:
```
[get-port] Unable to find an available port (tried 3000 on host "localhost"). Using alternative port 3001.
```
But the connector CORS config was hardcoded to only allow the prod host and `http://localhost:3000`,
causing local authentication to fail in an opaque manner.
It now uses a regex pattern to allow any localhost port. This seems fine from a security
perspective, and there aren't alternatives with great DX that I can think of.1 parent 2df63c6 commit c71539e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments