mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 16:56:04 +00:00
01_FHEMWEB.pm: change Access-Control-Allow-Methods to comma separated (Forum #86957)
git-svn-id: https://svn.fhem.de/fhem/trunk@16599 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0fd114ccaa
commit
6cf14b9d52
@ -407,7 +407,7 @@ FW_Read($$)
|
||||
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 POST OPTIONS\r\n".
|
||||
"Access-Control-Allow-Methods: GET, POST, OPTIONS\r\n".
|
||||
"Access-Control-Allow-Headers: Origin, Authorization, Accept\r\n".
|
||||
"Access-Control-Allow-Credentials: true\r\n".
|
||||
"Access-Control-Max-Age:86400\r\n".
|
||||
|
Loading…
x
Reference in New Issue
Block a user