File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Cross frame Scripting
Joined: Mar 18, 2013
Jun 16, 2013 12:23:47
How to add X-frame options header in .htm file
its working fine when i add <% response.addHeader("X-Frame-Options", "SAMEORIGIN"); %> in
But not sure how to add X-frame options in .htm file?
Can any one please help me?
Joined: May 26, 2003
Jun 16, 2013 15:47:54
You can turn it into a JSP
. You can also have your web server (for example Apache) set the headers - I've never needed to do that though.
You can't add this header directly to a HTML file.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Nov 06, 2012
Jun 21, 2013 05:25:18
You would have to configure your web server to send the header, either with all requests or just for requests matching a particular
. MDN has some
instructions for Apache and nginx
Read my books:
Hello! HTML5 & CSS3
HTML5 in Action
Read my blog
It is sorta covered in the
JavaRanch Style Guide
subject: Cross frame Scripting
close option in JDialog
Problem in Include a url in IE "Access denied"
File filter without empty directory
Cross Frame Scripting or Clickjacking
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014