Commit 39f4a5c4 authored by Timothee Gosselin's avatar Timothee Gosselin Committed by GitHub

add headers for CRSF check

parent 5d24dce3
......@@ -5,4 +5,4 @@ source /etc/environment
user=$1
group=$2
curl -X POST --user ${cloud_admin}:${cloud_pass} https://${cloud_hostname}/ocs/v1.php/cloud/users/${1}/groups -d groupid="${2}"
curl -X POST -H "OCS-APIRequest:true" --user ${cloud_admin}:${cloud_pass} https://${cloud_hostname}/ocs/v1.php/cloud/users/${1}/groups -d groupid="${2}"
Markdown is supported
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