Access-Control-Allow-Headers Error

I am getting the following error when attempting to do a POST.

Failed to load https://my.api.mockaroo.com/emailforms.json?key=********&__method=POST: Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.

Is there anything I can do to prevent this from happening? According to https://stackoverflow.com/a/25727411/8627019 this is a server side issue.

I found a solution to my error. This is related to CORS. (https://github.com/axios/axios/issues/191#issuecomment-311069164)

For me, a simple, temporary fix until we move to our own API is to use Allow-Control-Allow-Origin: * Chrome plugin.

It would be nice if this was something Mockaroo could address.

Thank you for posting this. I think I ran into the same issues when testing against the latest version of jQuery. It should be fixed now.

Mockaroo will now return the value of the Access-Control-Request-Headers request attribute as the Access-Control-Allow-Headers response header, which should make all CORS client libraries work.

Please let me know if this fixes your issue.

Works like a charm! Awesome. Thank you.