{"id":764,"date":"2007-06-25T01:39:22","date_gmt":"2007-06-24T23:39:22","guid":{"rendered":"http:\/\/www.rare-it.com\/blog\/index.php\/2007\/06\/25\/firefox-signed-scripts\/"},"modified":"2007-06-25T01:39:22","modified_gmt":"2007-06-24T23:39:22","slug":"firefox-signed-scripts","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2007\/06\/firefox-signed-scripts\/","title":{"rendered":"FireFox signed scripts"},"content":{"rendered":"<p>FireFox implemented a scripting-security feature that should do its work better than a question &#8220;Do you allow this script to run&#8221; or something along that line. Because users will press YES, since they are browsing and don&#8217;t want to be annoyed with pop-ups&#8230;<br \/>\nOne of the items that can&#8217;t be done from scripting anymore is an XMLHTTPRequest (to another site). Basically the thing that runs AJAX. Without it, you would not have AJAX.<\/p>\n<p>Now FireFox is asking us to <a href=\"http:\/\/www.mozilla.org\/projects\/security\/components\/signed-scripts.html\">sign our Javascript<\/a>, so it will know the script is what it&#8217;s supposed to be. But wait&#8230;.not only the Javascript (or external .js file), but <strong>the whole page<\/strong>.<\/p>\n<p><strong>WTF?<\/strong><\/p>\n<p><a href=\"http:\/\/www.oracle.com\/technology\/products\/database\/application_express\/index.html\">APEX <\/a> generates pages on the fly, and you can include javascript in the page definition. But there is no complete page to sign. So how do I solve a &#8220;Permission denied to call method XMLHTTPRequest.open&#8221;? Any framework that dynamically generates pages will suffer from the same problem, so&#8230;.any thoughts on this one? I can&#8217;t just alter the framework to do some server-side proxying only to overcome the fact that the client can&#8217;t request an URL.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FireFox implemented a scripting-security feature that should do its work better than a question &#8220;Do you allow this script to run&#8221; or something along that line. Because users will press YES, since they are browsing and don&#8217;t want to be annoyed with pop-ups&#8230; One of the items that can&#8217;t be done from scripting anymore is <a href='https:\/\/www.switchbl8.nl\/blog\/2007\/06\/firefox-signed-scripts\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-764","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=764"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/764\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}