405 bad request on a POST request through strapi

You should configure the Access-Control-Allow-Methods CORS header.
You can configure it in config/middlewares.js

Here is a reference: