samples

Proxy in PHP for your widgets to talk to the DayPI

By vineet

Applications written as Java applets, Flash or Javascript widgets often face security issues where they cannot talk to a data source which does not have the same domain name as the one where they get served from. For example, if you are going to host a flash widget on http://example.com, your flash securtiy settings will normally not let you talk to any data source that is not hosted on http://example.com.

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.

Filed Under: