There are workarounds using crossdomain files to solve someo of these problems. However, we do not support a crossdomain file for our freeapi.daylife.com domain that lets your widget read data from anywhere.
To work-around these security issues, you need a proxy that you can host on the same domain as your widget and that proxies all DayPI calls.
Read more below to learn how to use this proxy. The attached code in PHP has the following features:
you provide the following value to the request parameter:
Idea is to take the portion of the DayPI URL beyond the domain name http://freaapi.daylife.com/ and urlencode it. If you host this PHP file in the document root of your server (say http://example.com), your widget will make the API call using the proxy as follows:
=function) wraps the JSON output text in parentheses and a function name of your choosing.