system
1
Migrated from Redmine #833 | Author: Leo Dimacuha
Status: Closed | Priority: Normal | Created: 2022-01-12
Hi I’m developing a custom booking interface for our clients but I’m encountering this error when testing on my local:
Access to XMLHttpRequest at ‘https://user-api.simplybook.me/login’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Is there a setting in SimplyBook admin where I can whitelist the url?
Thanks
system
2
Dmytro Bondarev wrote:
Hi, we do have headers
access-control-allow-methods: POST, GET, OPTIONS
access-control-allow-origin: *
Please provide HTTP request and response.
You can also check headers in network tab.
Additionally you can check headers here: Simplybook.me API example
system
3
Leo Dimacuha wrote:
Dmitry Bondarev wrote:
Hi, we do have headers
[…]
Please provide HTTP request and response.
You can also check headers in network tab.
Additionally you can check headers here: Simplybook.me API example
Thank you Dmitry, I got it to work. this ticket can be closed now.