From 9ec21cab628287124d5a66c45d2bff13fccc9f37 Mon Sep 17 00:00:00 2001 From: Grey Moore Date: Tue, 21 May 2024 16:36:29 -0400 Subject: [PATCH] Fix typo in JSONP explanation Co-authored-by: Diego Marcet --- source/includes/json/_intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/includes/json/_intro.md b/source/includes/json/_intro.md index bb4bd4cb3da..393bd0851fe 100644 --- a/source/includes/json/_intro.md +++ b/source/includes/json/_intro.md @@ -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.