Add valid CORS header to longpool emulator

This commit is contained in:
Alma Armas 2020-09-29 13:00:59 -07:00
parent b2f069f75f
commit 3fa401bf5d

View file

@ -67,6 +67,7 @@ final class MessengerPresenter extends OpenVKPresenter
function renderVKEvents(int $id): void
{
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json");
if($this->queryParam("act") !== "a_check")