2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-14 05:46:35 +00:00

01_FHEMWEB.pm: CORS Origin is case insensitive (Forum #64219)

git-svn-id: https://svn.fhem.de/fhem/trunk@12984 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-06 13:58:42 +00:00
parent 29fe85356e
commit dda1bbc159

View File

@ -408,7 +408,7 @@ FW_Read($$)
} @FW_httpheader;
delete($hash->{HDR});
my @origin = grep /Origin/, @FW_httpheader;
my @origin = grep /Origin/i, @FW_httpheader;
$FW_headerlines = (AttrVal($FW_wname, "CORS", 0) ?
(($#origin<0) ? "": "Access-Control-Allow-".$origin[0]."\r\n").
"Access-Control-Allow-Methods: GET OPTIONS\r\n".