Skip to content

Commit

Permalink
Add cors config. Update openapi config
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbov committed Nov 7, 2023
1 parent 2b9869e commit d4c92d6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions sbdi/data/config/specieslist-webapp-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ security.cas.casServerName=https://auth.biodiversitydata.se
security.cas.casServerUrlPrefix=https://auth.biodiversitydata.se/cas/
security.cas.loginUrl=https://auth.biodiversitydata.se/cas/login
security.cas.logoutUrl=https://auth.biodiversitydata.se/cas/logout
security.cas.appServerName=https://lists.biodiversitydata.se
security.cas.appServerName=http://localhost:8080
security.cas.bypass=false
# Moved from config file to application.groovy use AUTH 3+
Expand All @@ -20,6 +19,11 @@ security.cas.authCookieName=ALA-Auth
serverURL=http://localhost:8080
serverName=http://localhost:8080
grails.serverURL=http://localhost:8080
grails.cors.enabled=true
grails.cors.allowCredentials=true
grails.cors.allowedOrigins=http://localhost,https://biodiversitydata.se
grails.cors.allowedOriginPatterns=http://localhost:*,https://*.biodiversitydata.se
grails.cors.mappings.[/ws/**]=inherit

#removed configs
#contextPath=/specieslists
Expand Down Expand Up @@ -104,11 +108,17 @@ webservice.jwt=false

userDetails.url=https://auth.biodiversitydata.se/userdetails/

openapi.title=Specieslist REST services
openapi.description=REST services for interacting with the list webapp
openapi.terms=https://docs.biodiversitydata.se/sbdi-data/sbdi-atlas-terms-of-use/
openapi.contact.name=
openapi.contact.email=
openapi.license.name=Mozilla Public License 1.1
openapi.license.url=https://www.mozilla.org/en-US/MPL/1.1/
openapi.license.version='@info.app.version@'
openapi.components.security.oauth2.authorizationUrl=
openapi.components.security.oauth2.baseUrl=
openapi.components.security.oauth2.refreshUrl=
openapi.components.security.oauth2.tokenUrl=
openapi.terms=
openapi.contact.email=

publicview.hidePrivateLists=true

0 comments on commit d4c92d6

Please sign in to comment.