mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 13:13:54 +08:00
Removed the in jsonp answer. (#60)
This commit is contained in:
@ -891,7 +891,7 @@ The `XMLHttpRequest` API is frequently used for the asynchronous communication o
|
||||
|
||||
JSONP (JSON with Padding) is a method commonly used to bypass the cross-domain policies in web browsers because Ajax requests from the current page to a cross-origin domain is not allowed.
|
||||
|
||||
JSONP works by making a request to a cross-origin domain via a `<script>` tag and usually with a `callback` query parameter, for example: `https://example.com?callback=printData`. The server will then wrap the data within the a function called `printData` and return it to the client.
|
||||
JSONP works by making a request to a cross-origin domain via a `<script>` tag and usually with a `callback` query parameter, for example: `https://example.com?callback=printData`. The server will then wrap the data within a function called `printData` and return it to the client.
|
||||
|
||||
```html
|
||||
<!-- https://mydomain.com -->
|
||||
|
Reference in New Issue
Block a user