Skip to content

Commit

Permalink
fix: fixed regex for cors
Browse files Browse the repository at this point in the history
  • Loading branch information
vafanassieff committed Sep 10, 2021
1 parent 3a968c3 commit 4767196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/srcs/middleware/cors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const origin = (origin, callback) => {
if (
!origin ||
origin.match(/^http:\/\/localhost:\d+$/) ||
origin.match(/^http:\/\/umbrel(-dev)?.local(:\d+)?$/)
origin.match(/^http:\/\/umbrel(.*?).local(:\d+)?$/)
) {
callback(null, true)
} else {
Expand Down

0 comments on commit 4767196

Please sign in to comment.