Skip to content Skip to sidebar Skip to footer

Is Xml Subject To The Same Domain Policy In Javascript When Using Xmlhttprequest

Is XML subject to the Same Domain Policy in JavaScript when using XMLHttpRequest? How can I make Cross Domain Requests using Ajax? Does Enabled CORS requests be applied for XML?

Solution 1:

Is XML subject to the Same Domain Policy in JavaScript when using XMLHttpRequest?

Everything is subject to the same origin policy when using XMLHttpRequest. The returned content-type is not relevant to it.

How can I make Cross Domain Requests using Ajax?

This is well covered by the answers to Ways to circumvent the same-origin policy

Does Enabled CORS requests be applied for XML?

Yes. The returned content-type is not relevant to it.

Post a Comment for "Is Xml Subject To The Same Domain Policy In Javascript When Using Xmlhttprequest"