I built Tides app which gets JSON data from tidesandcurrents.noaa.gov in custom.html (like openstmap does).
When I test it from github.io I get CORS policy error.
Is that something I have to work around or it would work fine on https://banglejs.com/ ?
Access to XMLHttpRequest at 'https://tidesandcurrents.noaa.gov/api/datagetter?product=predictions&application=NOS.COOPS.TAC.WL&range=720&datum=MLLW&station=8531680&time_zone=lst_ldt&units=english&interval=hilo&format=json' from origin 'https://pasniak.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
App is at: https://pasniak.github.io/BangleApps/#outdoors
@Michaelnik started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I built Tides app which gets JSON data from tidesandcurrents.noaa.gov in custom.html (like openstmap does).
When I test it from github.io I get CORS policy error.
Is that something I have to work around or it would work fine on https://banglejs.com/ ?
Access to XMLHttpRequest at 'https://tidesandcurrents.noaa.gov/api/datagetter?product=predictions&application=NOS.COOPS.TAC.WL&range=720&datum=MLLW&station=8531680&time_zone=lst_ldt&units=english&interval=hilo&format=json' from origin 'https://pasniak.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
App is at:
https://pasniak.github.io/BangleApps/#outdoors