mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-13 03:23:18 +03:00
Corrected issue with routing and CORS while running from the terminal
This commit is contained in:
parent
255d1b5d95
commit
81044eb9c6
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ $route['translate_uri_dashes'] = FALSE;
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS')
|
if (isset($_SERVER) && $_SERVER['REQUEST_METHOD'] === 'OPTIONS')
|
||||||
{
|
{
|
||||||
header('Access-Control-Allow-Origin: *');
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue