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.
2 Replies
Corsix👾
Corsix👾OP7mo ago
ive tried to add a cors from but changed to to js format from ts https://developers.cloudflare.com/pages/functions/examples/cors-headers/
Cloudflare Docs
Adding CORS headers · Cloudflare Pages docs
This example is a snippet from our Cloudflare Pages Template repo.
Corsix👾
Corsix👾OP7mo ago
ive tried to just revert to vanilla totorial(https://developers.cloudflare.com/pages/tutorials/forms/), same issue so super confuzed https://testsite-es8.pages.dev/ i still get the 405
Want results from more Discord servers?
Add your server