Skip to content

Add test for JSONP #31765

Closed
Closed
@mhevery

Description

@mhevery

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.js

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions