[#461] Cors Issue

Migrated from Redmine #461 | Author: terry smyth
Status: Feedback | Priority: Normal | Created: 2020-01-06


ISSUE:

jquery-3.4.1.min.js:2 Access to XMLHttpRequest at ‘http://user-api.simplybook.me/login’ from origin ‘http://159.65.10.155’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.


Just a cross-platform issue. Perhaps you can help me solve it?

Thanks!

Dmytro Bondarev wrote:

Hi!
We do send access-control-allow-origin headers. Please make sure that you connect over https.

Headers that we send:

@access-control-allow-headers: content-type, x-company-login, x-application-token, x-user-token, x-token, x-requested-with
access-control-allow-methods: POST, GET, OPTIONS
access-control-allow-origin: *@

terry smyth wrote:

of course… apologies (https)