Updated CORS to use a property
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
server.port=8001
|
||||
allowedOrigins=http://localhost:3000
|
||||
|
||||
Reference in New Issue
Block a user