mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
ACE-5595 - Some Admin Console pages don't work when disabling the CSRF filter
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@131834 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -49,11 +49,11 @@ var Admin = Admin || {};
|
|||||||
|
|
||||||
<#assign CSRF=(config.scoped["CSRFPolicy"]["filter"].getChildren("rule")?size != 0)!false>
|
<#assign CSRF=(config.scoped["CSRFPolicy"]["filter"].getChildren("rule")?size != 0)!false>
|
||||||
Admin.CSRF = {
|
Admin.CSRF = {
|
||||||
enabled: ${CSRF?c}<#if CSRF>,
|
enabled: ${CSRF?c},<#if CSRF>
|
||||||
cookie: "${config.scoped["CSRFPolicy"]["client"].getChildValue("cookie")!""}",
|
cookie: "${config.scoped["CSRFPolicy"]["client"].getChildValue("cookie")!""}",
|
||||||
header: "${config.scoped["CSRFPolicy"]["client"].getChildValue("header")!""}",
|
header: "${config.scoped["CSRFPolicy"]["client"].getChildValue("header")!""}",
|
||||||
parameter: "${config.scoped["CSRFPolicy"]["client"].getChildValue("parameter")!""}",
|
parameter: "${config.scoped["CSRFPolicy"]["client"].getChildValue("parameter")!""}",</#if>
|
||||||
properties: {}</#if>
|
properties: {}
|
||||||
};
|
};
|
||||||
<#if config.scoped["CSRFPolicy"]["properties"]??>
|
<#if config.scoped["CSRFPolicy"]["properties"]??>
|
||||||
<#assign csrfProperties = (config.scoped["CSRFPolicy"]["properties"].children)![]>
|
<#assign csrfProperties = (config.scoped["CSRFPolicy"]["properties"].children)![]>
|
||||||
|
Reference in New Issue
Block a user