Skip to content

Commit 9c1d53d

Browse files
authored
Merge pull request #21 from UnityFoundation-io/allow-cors-with-frontend
include regex when running locally
2 parents a5128f9 + 1092d9f commit 9c1d53d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

UnityAuth/src/main/resources/application-local.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ micronaut:
55
cors:
66
enabled: true
77
configurations:
8-
allowedOrigins:
9-
- http://localhost:3000
10-
- localhost:3000
11-
- http://127.0.0.1:3000
8+
web:
9+
allowed-origins-regex: '^http:\/\/(.*?)localhost:3000$'
10+
allowedOrigins:
11+
- http://localhost:3000
12+
- localhost:3000
13+
- http://127.0.0.1:3000
14+
1215
security:
1316
authentication: bearer
1417
datasources:

0 commit comments

Comments
 (0)