502 Bad Gateway error when opening an HTTP service (CORS header)