JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › getting JSON codepen example to work with CORS issue › Reply To: getting JSON codepen example to work with CORS issue
August 15, 2023 at 9:38 pm
#108550
edwardsmarkff
Participant
sorry should have said:
- visit: https://www.htmlelements.com/demos/grid/datagrid-bind-to-json/
- scroll to bottom of page and notice the “Edit the codepen” button at the bottom of the page
- on windows, do window-key “R”
- enter the following command & open up a new window: chrome.exe –user-data-dir=”C://Chrome dev session” –disable-web-security
- go back to first window, and click “Edit the codepen” at the bottom of the page
- QUICKLY grab the URL to the codepen (it will morph into another URL after a moment or so) repeat if necessary
- paste URL into the newly opened window from step 4
- change the dataSource value to the following: dataSource: ‘//htmlelements.com/demos/scripts/beverages.json‘,
otherwise you get the CORS error.