Hi, I'm trying to implement the API in my front-end javascript website but I'm getting a cors exception, running the same request through Insomnia works just fine, so I'm kinda lost...
On the profile settings page I can only set IPs, not hosts... is my use case not meant to work? The key is retrieved from a db only for logged in admin users, so it's not being exposed to the public...
Access to fetch at 'https://api.cron-job.org/jobs' from origin 'http://localhost:4000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Hi, I'm trying to implement the API in my front-end javascript website but I'm getting a cors exception, running the same request through Insomnia works just fine, so I'm kinda lost...
On the profile settings page I can only set IPs, not hosts... is my use case not meant to work? The key is retrieved from a db only for logged in admin users, so it's not being exposed to the public...
My request:
Error in console:
Any help would be appreciated, thanks!