Passing xhr request to runtime environment so it can check authentication status