From 3fa401bf5d27abbbe3032bec78cc42940be8dba8 Mon Sep 17 00:00:00 2001 From: Alma Armas Date: Tue, 29 Sep 2020 13:00:59 -0700 Subject: [PATCH] Add valid CORS header to longpool emulator --- Web/Presenters/MessengerPresenter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Web/Presenters/MessengerPresenter.php b/Web/Presenters/MessengerPresenter.php index cc5f6c8b..95b79a13 100644 --- a/Web/Presenters/MessengerPresenter.php +++ b/Web/Presenters/MessengerPresenter.php @@ -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")