Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit d1dd1a8

Browse files
committed
fix: cors 2
1 parent 0706c36 commit d1dd1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/src/middleware/cors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default cors({
1414
origin.match(/^http:\/\/localhost:\d+$/) ||
1515
origin.match(/^http:\/\/umbrel(.*?).local(:\d+)?$/) ||
1616
// eslint-disable-next-line prettier/prettier, no-useless-escape
17-
origin.match('/^http://192.168.d{1,3}.d{1,3}(:d+)?$/') ||
17+
origin.match('/^http(s)?://(d{1,3}.){3}.d{1,3}(:d+)?$/') ||
1818
origin.match(`http://${process.env.APP_HIDDEN_SERVICE}`) ||
1919
origin.match(`http://${process.env.APP_DOMAIN}`)
2020
) {

0 commit comments

Comments
 (0)