Hi Folks, I have created a jsonp function that will be used on a script so some other people could use widgets with just 2 lines like:
<script src="http://example.com/widget/script.js" type="text/javascript"></script><div id="example-widget-container"></div> This script will call the jsonp function using: $.getJSON(widget_url, function(data) { $('#example-widget-container').html(data.html); }); How could I prevent people from execute my webservice funtion from another "js" file or a modified version? I have checked request.env variable but I didn't find anything that I could say: *This call is from a javascript located in example.com, otherwise ignore.* Thanks in advance! Tito -- Linux User #387870 .........____ .... _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:_______ --

