Enable CORS by adding a onrequest Hook