set Access-Control-Allow-Origin

This commit is contained in:
everyx 2016-11-04 19:06:51 +08:00
parent f21308ee94
commit 02c3e71dd9

View File

@ -51,6 +51,8 @@ class OperatorStatusController extends AbstractController
$is_online = "true"; $is_online = "true";
} }
} }
return new Response($is_online); $response = new Response($is_online);
$response->headers->set('Access-Control-Allow-Origin', '*');
return $response;
} }
} }