diff --git a/APPL/Shared/Common.inc b/APPL/Shared/Common.inc index 10c368763b..511d2f07d1 100644 --- a/APPL/Shared/Common.inc +++ b/APPL/Shared/Common.inc @@ -282,6 +282,15 @@ if ((user_key < 0 || getQParamInt("jwtforce", 0) == 1) && typeof LOGIN_try == "u if (user_key < 0 && typeof ANONYMOUS_Allowed == "undefined") { + var method = String(Request.ServerVariables("REQUEST_METHOD")); + if (method == "HEAD" || method == "OPTIONS" || method == "PROPFIND") + { // Een HEAD zonder cookies is waarschijnlijk afkomstig van Excel + // met agent 'Microsoft+Office+Existence+Discovery' + // Door de '405' heeft hij hopelijk door dat we echt geen WEBDAV doen + Response.Status = "405 Method not allowed"; + Response.End; + } + if (JSON_Result) // Login scherm werkt toch niet { Response.Clear();