xmlhttprequest - Iframe and cross domain requests -


If I have a page that provides service from foo.com, where ifframe is provided from barfork, then its Is there a script inside the IFrame to do an XMLHttpRequest for bar.com?

Say that IFrame requests additional pages from bar.com, in the server, will reference these requests to bar.com or foo.com?

If your IFRAME is serving bar.com, then yes, the script in the iframe (bar. Com) will be able to do an XMLHttpRequest to bar.com (the same domain) if the page of iframe changes (unrelated to XMLHttpRequest), then the reference will be foo.com (the original window).


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -