API now response correctly to preflight
API now response correctly to preflight