Migrated from Redmine #1324 | Author: Javier M
Status: New | Priority: Normal | Created: 2024-12-03
I am trying to use the API from my website. But I am getting the following error messages in the console:
- [Error] Failed to load resource: Origin https:// my-website is not allowed by Access-Control-Allow-Origin. Status code: 200 (event, line 0)
- Fetch API cannot load https://secure.simplymeet.me/panel/api/event?name= user_email due to access control checks
This is the call:
fetch(https://secure.simplymeet.me/panel/api/event?invitee=${encodeURIComponent(email)}, {
method: ‘GET’,
headers: {
‘Content-Type’: ‘application/json’,
‘X-API-KEY’: apiKey
}
})