I'm attempting to send a POST request to a Magento 2 API that my co-worker launched. It's up and working. I've been able to get a response via curl, but because of pre-flight requests from the client I haven't been able to get a response.
Now, I know about the headers. We have
'Access-Control-Allow-Origin': '*' set already. The issue is that the OPTIONS request is being sent to determine the safety of the request (see here). Is there a way to handle this pre-flight OPTIONS request? If so, how?
Here's the other thing: my co-worker is receiving a response via curl, Ajax, and Ember. 🤔