Commit f411cf5
committed
fix(local): return null from CORS origin callback for non-localhost origins
Returning a mismatched string still worked (browser blocks on mismatch)
but returning null correctly omits the Access-Control-Allow-Origin
header per Hono's CORS middleware API.1 parent 16731e3 commit f411cf5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments