Updated CORS to use a property

This commit is contained in:
2024-04-27 16:23:05 -04:00
parent 3b9a984659
commit 4a5a221605
3 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
{
"groups":[
],
"properties":[
{
"name": "allowed-origins",
"type": "java.lang.String",
"description": "Allowed CORS origins",
"defaultValue": "http://localhost:3000"
}
],
"hints":[
{
"name": "allowed-origins",
"values": [
{
"value": "http://localhost:3000",
"description": "Local development"
},
{
"value": "https://api.cipherstream.mattrixwv.com",
"description": "Production"
}
]
}
]
}

View File

@@ -1 +1,2 @@
server.port=8001
allowedOrigins=http://localhost:3000