How to get a cross-origin resource sharing (CORS) post request working How to get a cross-origin resource sharing (CORS) post request working ajax ajax