Removed the in jsonp answer. (#60)

This commit is contained in:
Yes Man
2017-10-18 22:49:13 -07:00
committed by Yangshun Tay
parent 7154f2ca8e
commit 4bb406a7de

View File

@ -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 -->