Timeline for Magento 2 Admin Error using Mirasvit Push Notifications
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 3, 2022 at 17:15 | comment | added | Nikos Klavdianos | Yes, SSL was issued with Let's Encrypt. I don't think http is used in between | |
Jun 3, 2022 at 16:52 | comment | added | Victor Tihonchuk | Headers looks correct. Do you have valid SSL, etc? Is request made from HTTPS to HTTPS? | |
Jun 3, 2022 at 16:48 | comment | added | Nikos Klavdianos | HTTP/2 204 content-type: text/plain charset=UTF-8 pragma: no-cache expires: -1 cache-control: no-store, no-cache, must-revalidate, max-age=0 x-cache: MISS access-control-allow-origin: * access-control-allow-credentials: true access-control-max-age: 1728000 access-control-allow-methods: GET, POST, PUT, DELETE, PATCH, OPTIONS access-control-allow-headers: Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since strict-transport-security: max-age=7889238 cf-cache-status: DYNAMIC | |
Jun 3, 2022 at 16:28 | comment | added | Victor Tihonchuk |
Try to use curl for curl https://domain.com/push_notification/action/subscribe -X OPTIONS -H "Access-Control-Request-Method: POST" -H "Access-Control-Request-Headers: content-type" -H "Origin: https://domain.com" -I
|
|
Jun 3, 2022 at 15:50 | comment | added | Nikos Klavdianos | I found that running Chrome disabling same origin policy removes the error but that's a workaround. "chrome.exe --user-data-dir="C://Chrome dev session" --disable-web-security". Looking at the response headers I get: access-control-allow-origin *, cache-control no-store, no-cache, must-revalidate, max-age=0, cache-control no-store, no-cache, must-revalidate, max-age=0, x-frame-options: SAMEORIGIN, x-xss-protection: 1; mode=block | |
Jun 3, 2022 at 15:31 | comment | added | Victor Tihonchuk |
Unfortunately, it's paid extension and i cannot check source code. Try to check headers of https://domain.com/push_notification/action/subscribe first
|
|
Jun 3, 2022 at 15:27 | comment | added | Nikos Klavdianos | I have tried with IE Edge, Firefox and Chrome and all of them give error. I have update the question with Firefox Dev Tools Error too. Sites, both Dev Environment and Pre production are served through https. If it's a server configuration where should I look? Nginx, Varnish... | |
Jun 3, 2022 at 15:07 | history | answered | Victor Tihonchuk | CC BY-SA 4.0 |