The server answers with Access-Control-Allow-* headers; Access-Control-Max-Age lets the browser cache the answer.