Explain cross-domain AJAX requests in jQuery.

Mid JQuery

Answer

Same-origin policy blocks external requests.
Solutions:
• CORS enabled by server
• JSONP for GET requests
Allows safe cross-domain communication.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice