Requesting Live Data with Ajax
Posted: Mon Mar 09, 2020 3:55 pm
Hi everybody,
I'm using a Davis 6152EU Vantage Pro 2 weather station and the meteobridge PRO red to receive the weatherdata. I want to display the data on a LED Wall using a Digital Signage Player. The weather data should be picked up by the player via GET Request. The Signage Player and the meteobridge are in the same network with fixed IPs. The HTML widget on the player now tries to fetch the data via an ajax request. The following error message is displayed:
"Access to XMLHTTPRequest has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requestet resource"
Can someone tell me what the correct ajax request should look like or is there an alternative?
Thank you in advance for your help!
I'm using a Davis 6152EU Vantage Pro 2 weather station and the meteobridge PRO red to receive the weatherdata. I want to display the data on a LED Wall using a Digital Signage Player. The weather data should be picked up by the player via GET Request. The Signage Player and the meteobridge are in the same network with fixed IPs. The HTML widget on the player now tries to fetch the data via an ajax request. The following error message is displayed:
"Access to XMLHTTPRequest has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requestet resource"
Can someone tell me what the correct ajax request should look like or is there an alternative?
Thank you in advance for your help!