mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-21 06:22:59 +00:00
Allow CORS access from IPv6 localhost
This commit is contained in:
parent
0b995deafb
commit
d8b93fe1d7
1 changed files with 2 additions and 0 deletions
2
api.php
2
api.php
|
@ -54,6 +54,8 @@ $perfcounter->end("di");
|
|||
|
||||
// 5: Action
|
||||
|
||||
header("access-control-allow-origin: http://[::1]:40482");
|
||||
|
||||
// Figure out the action name
|
||||
$action = str_replace(
|
||||
" ", "",
|
||||
|
|
Loading…
Reference in a new issue