From cbfa685d12b115c46ed9f914516786438b846ae4 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 3 Apr 2016 14:50:33 +0000 Subject: [PATCH] 96_allowed.pm: allow HTTP OPTIONS request without authentication (Forum #51362) git-svn-id: https://svn.fhem.de/fhem/trunk@11180 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/96_allowed.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/FHEM/96_allowed.pm b/fhem/FHEM/96_allowed.pm index 07d90313f..1db74771e 100755 --- a/fhem/FHEM/96_allowed.pm +++ b/fhem/FHEM/96_allowed.pm @@ -88,6 +88,8 @@ allowed_Authenticate($$$$) delete $cl->{".httpAuthHeader"}; return 0 if(!$basicAuth); + return 1 if($FW_httpheader[0] =~ m/^OPTIONS /); #Forum #51362 + my $FW_httpheader = $param; my $secret = $FW_httpheader->{Authorization}; $secret =~ s/^Basic //i if($secret);