xfo_iframe.sjs (486B)
1 /* Any copyright is dedicated to the Public Domain. 2 * http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 function handleRequest(request, response) { 5 // let's enjoy the amazing XFO setting 6 response.setHeader("X-Frame-Options", "SAMEORIGIN"); 7 8 // let's avoid caching issues 9 response.setHeader("Pragma", "no-cache"); 10 response.setHeader("Cache-Control", "no-cache", false); 11 12 // everything is fine - no needs to worry :) 13 response.setStatusLine(request.httpVersion, 200); 14 }