I am using the example provided at https://developers.cloudflare.com/pages/platform/api#deleting-old-deployments-after-a-week.
Whenever I manually trigger the event using - Trigger schedule event - under schedule tab, it gives me a CORS error:
Access to fetch at 'https://scheduled.cloudflareworkers.com/' from origin 'https://dash.cloudflare.com' has been blocked by CORS policy: 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.
This was working few days ago and it suddenly stopped. Not sure what the problem is. Help!