Facing a 405 HTTP Code error Not Allowed

For Workers & Pages, what is the name of the domain?

What is the issue or error you’re encountering

When I call the URL with this command curl -X OPTIONS https://mute-math-c57c.ahmedzfaycal.workers.dev -i I’m getting a 405

What steps have you taken to resolve the issue?

I took this example CORS header proxy · Cloudflare Workers docs

I deployed it.

I execute this command
curl -X OPTIONS https://mute-math-c57c.ahmedzfaycal.workers.dev -i

and i’m getting a 405 Not Allowed

What are the steps to reproduce the issue?

Follow the exact same steps as above

Problem solved! !

The issue was coming from the fact that i was calling the domain URL

[https://mute-math-c57c.ahmedzfaycal.workers.dev/]

instead of an endpoint

[https://mute-math-c57c.ahmedzfaycal.workers.dev/xyz]

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.