You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,7 @@ hostBpm| (Optional value The Ip or Name of the host where your Activiti instance
121
121
contextRoot| (Optional value that define the context Root of the API default value is alfresco )|alfresco |
122
122
provider| (Optional value default value is ECM. This parameter can accept as value ECM BPM or ALL to use the API and Login in the ECM, Activiti BPM or Both )|alfresco |
123
123
ticket| (Optional only if you want login with the ticket see example below)| |
124
+
disableCsrf| To disable CSRF Token to be submitted. Only for Activiti call.| false |
Copy file name to clipboardExpand all lines: dist/alfresco-js-api.js
+33-2Lines changed: 33 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72265,6 +72265,7 @@ var AlfrescoApi = function () {
72265
72265
* provider: // ECM BPM ALL, default ECM
72266
72266
* ticketEcm: // Ticket if you already have a ECM ticket you can pass only the ticket and skip the login, in this case you don't need username and password
72267
72267
* ticketBpm: // Ticket if you already have a BPM ticket you can pass only the ticket and skip the login, in this case you don't need username and password
72268
+
* disableCsrf: // To disable CSRF Token to be submitted. Only for Activiti call, by default is false.
72268
72269
* };
72269
72270
*/
72270
72271
function AlfrescoApi(config) {
@@ -72280,7 +72281,8 @@ var AlfrescoApi = function () {
72280
72281
contextRoot: config.contextRoot || 'alfresco',
72281
72282
provider: config.provider || 'ECM',
72282
72283
ticketEcm: config.ticketEcm,
72283
-
ticketBpm: config.ticketBpm
72284
+
ticketBpm: config.ticketBpm,
72285
+
disableCsrf: config.disableCsrf || false
72284
72286
};
72285
72287
72286
72288
this.bpmAuth = new BpmAuth(this.config);
@@ -72292,6 +72294,12 @@ var AlfrescoApi = function () {
72292
72294
}
72293
72295
72294
72296
_createClass(AlfrescoApi, [{
72297
+
key: 'changeCsrfConfig',
72298
+
value: function changeCsrfConfig(disableCsrf) {
72299
+
this.config.disableCsrf = disableCsrf;
72300
+
this.bpmAuth.changeCsrfConfig(disableCsrf);
72301
+
}
72302
+
}, {
72295
72303
key: 'changeEcmHost',
72296
72304
value: function changeEcmHost(hostEcm) {
72297
72305
this.config.hostEcm = hostEcm;
@@ -72670,7 +72678,9 @@ var AlfrescoApiClient = function (_ApiClient) {
Copy file name to clipboardExpand all lines: src/alfrescoApi.js
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ class AlfrescoApi {
24
24
* provider: // ECM BPM ALL, default ECM
25
25
* ticketEcm: // Ticket if you already have a ECM ticket you can pass only the ticket and skip the login, in this case you don't need username and password
26
26
* ticketBpm: // Ticket if you already have a BPM ticket you can pass only the ticket and skip the login, in this case you don't need username and password
27
+
* disableCsrf: // To disable CSRF Token to be submitted. Only for Activiti call, by default is false.
0 commit comments