Removed the in jsonp answer. (#60)

pull/63/head
Yes Man 7 years ago committed by Yangshun Tay
parent 7154f2ca8e
commit 4bb406a7de

@ -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 (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 ```html
<!-- https://mydomain.com --> <!-- https://mydomain.com -->

Loading…
Cancel
Save