Thanks for the reply. Im getting "Response to preflight request doesn't pass access control check: It does not have HTTP ok status." CORS policy.
My server does have the headers in:
header ("Access-Control-Allow-Origin: *");
header ("Access-Control-Expose-Headers: Content-Length, X-JSON");
header ("Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, OPTIONS");
header ("Access-Control-Allow-Headers: *");