Skip to content
Snippets Groups Projects
Commit 5e7912ce authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Ship new preprod CSRF cookie settings

parent b4a1260e
No related branches found
No related tags found
1 merge request!1648Ship new preprod CSRF cookie settings
......@@ -22,7 +22,8 @@ let apiBaseUrl = metas.api_base_url || process.env.VUE_APP_API_BASE_URL || ''
if (typeof window !== 'undefined' && window) apiBaseUrl = new URL(apiBaseUrl, window.location.href).href
export const API_BASE_URL = apiBaseUrl
const csrfCookiesExceptions: { readonly [host: string]: string } = {
'preprod.arkindex.teklia.com': 'arkindex.preprod.csrf',
'ce.preprod.arkindex.teklia.com': 'ce.arkindex.preprod.csrf',
'ee.preprod.arkindex.teklia.com': 'ee.arkindex.preprod.csrf',
'dev.arkindex.teklia.com': 'arkindex.dev.csrf'
}
export const CSRF_COOKIE_NAME: string = process.env.VUE_APP_CSRF_COOKIE_NAME || (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment