Skip to content

Commit

Permalink
Fix typo in JSONP explanation
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Marcet <[email protected]>
  • Loading branch information
lavaturtle and anero authored May 21, 2024
1 parent 04728a2 commit 9ec21ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/includes/json/_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ you'd want to add **hq.example.org** to your CORS Hostnames.

### JSONP
JSONP is an older approach to allowing cross-origin requests for JSON data.
The way is works is by specifying a Javascript callback that will handle the JSON data. The server wraps that callback around the data it returns.
The way it works is by specifying a Javascript callback that will handle the JSON data. The server wraps that callback around the data it returns.
This allows the call to technically be a Javascript request instead of a JSON request, and so the browser allows it.

Many front-end libraries, including jQuery, make it easy to consume JSONP endpoints. Our examples below use jQuery when demonstrating JSONP calls.

0 comments on commit 9ec21ca

Please sign in to comment.