Post request, getting 405 error not allowed

I have a CF pages site that sends a post request to a worker with a api with Hono framework, when i run both worker and page localy it workes no problem, but when its remote on the cloud, and i send the post request form the page to the worker it gets a 405 error on the page. i have no idea why.
Was this page helpful?