Skip to content
Snippets Groups Projects
Commit 2ef20f7d authored by Delphine's avatar Delphine
Browse files

[FIX TRTL-387] Fix mobile authent : add cors to cas conf

parent dabb02bf
No related branches found
No related tags found
1 merge request!1Feature/design/1
......@@ -168,6 +168,7 @@ vitamui:
root_log_level: "ERROR"
vitamui_level: "INFO"
reset_password_url: /extras/resetPassword?username={username}&firstname={firstname}&lastname={lastname}&language={language}&ttl=1day
cors.enabled: false
security_internal:
host: "vitamui-security-internal.service.consul"
vitamui_component: "security-internal"
......
......@@ -198,3 +198,12 @@ logging:
fr.gouv.vitamui.cas: DEBUG
org.elasticsearch.metrics: DEBUG
fr.gouv.vitamui.commons: DEBUG
{% if vitamui.cas_server.cors.enabled|lower == "true" %}
# Cas CORS (necessary for mobile app)
cas.httpWebRequest.cors.enabled: true
cas.httpWebRequest.cors.allowCredentials: false
cas.httpWebRequest.cors.allowOrigins: ['*']
cas.httpWebRequest.cors.allowMethods: ['*']
cas.httpWebRequest.cors.allowHeaders: ['*']
{% endif %}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment