Response for preflight has invalid HTTP status code 401

@gomzee Refer this post for cors configuration: