For fling to work, the fling a call must appear in a web page, and thus have an associated referer header, or the a URL must contain either the page URL or an URL directly to the content. See documentation for details.