Handling preflight requests

Axios wouldn’t make the POST request, because the OPTIONS request was failing. (Not 100% sure my code wasn’t working, mainly because the testing tab doesn’t have OPTIONS as an option.)

I’ve switched Axios to not do application/json POST requests, so it is hitting the worker. In testing tab it works 100% as expected. In the real word, the request hangs, then times out.