Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
CORS preflight OPTIONS request to API returns 404 #5724
I'm working on a project that will make some requests to Gitea's API. As my project is on a different origin, my browser sends a CORS preflight (an OPTIONS request).
Gitea doesn't handle an OPTIONS request, and returns 404.
How to fix?