I am currently developing a web application that initiates multiple ajax requests upon startup. The app functions perfectly when executed independently in the browser.
However, when I run it within an iframe, one of the ajax requests unexpectedly returns a 302 Found HTTP status code. Strangely enough, I am positive that I am accessing the same URL from both the browser and the iframe.
The source of the frame is situated on a different domain and port than the rest of the application.
What could possibly be causing this issue? It's puzzling that out of five GET requests to the same server, only the third request triggers a 302 response.