From e24fc36fc11407de9c40a4c80d931429b5b1e35b Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Thu, 12 Dec 2024 21:19:11 -0500 Subject: [PATCH] chore: disable jsonp crossorigin option --- src/examples/slickgrid/Example3.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/slickgrid/Example3.tsx b/src/examples/slickgrid/Example3.tsx index edc4d01..341e9bf 100644 --- a/src/examples/slickgrid/Example3.tsx +++ b/src/examples/slickgrid/Example3.tsx @@ -274,7 +274,7 @@ export default function Example3() { // http.get(`http://gd.geobytes.com/AutoCompleteCity?q=${searchText}`).subscribe(data => updateCallback(data)); /** with JSONP AJAX will work locally but not on the GitHub demo because of CORS */ - fetchJsonp(`http://gd.geobytes.com/AutoCompleteCity?q=${searchText}`, { crossorigin: true }) + fetchJsonp(`http://gd.geobytes.com/AutoCompleteCity?q=${searchText}`) .then((response) => response.json()) .then((json) => updateCallback(json)) .catch((ex) => console.log('invalid JSONP response', ex)); @@ -297,7 +297,7 @@ export default function Example3() { // http.get(`http://gd.geobytes.com/AutoCompleteCity?q=${searchText}`).subscribe(data => updateCallback(data)); /** with JSONP AJAX will work locally but not on the GitHub demo because of CORS */ - fetchJsonp(`http://gd.geobytes.com/AutoCompleteCity?q=${searchText}`, { crossorigin: true }) + fetchJsonp(`http://gd.geobytes.com/AutoCompleteCity?q=${searchText}`) .then((response) => response.json()) .then((json) => updateCallback(json)) .catch((ex) => console.log('invalid JSONP response', ex));