-
Notifications
You must be signed in to change notification settings - Fork 26.4k
Closed
Description
JSONP is a way to get data across domains by inserting a script tag.
client app inserts this into DOM
<script src="https://status.github.com/api/status.json?callback=apiStatus"></script>
it also publishes apiStatus
window.apiStatus = function(data) { ... }
The server then responds with:
apiStatus({"Name": "Foo", "Id": 1234, "Rank": 7});
Because Script tag gets inserted there is a async side-effect which will escape the zone.
Metadata
Metadata
Assignees
Labels
area: zonesIssues related to zone.jsIssues related to zone.js