x-frame-options

How do I get Sinatra to refrain from adding the X-Frame-Options header?

余生颓废 提交于 2019-11-28 04:53:58
I am using Sinatra to return some IFRAME contents, and I'd like to allow cross-domain src. Unfortunately, Sinatra is automatically adding an X-Frame-Options header to my response. How do I turn that off? Sinatra uses Rack::Protection , in particular the frame_options option, which is what is setting the X-Frame-Options header. You can configure which protections are used . Sinatra turns most of them on by default, (some are only enabled if you also are using sessions, and Rack::Protection itself doesn't enable some by default). To prevent sending the X-Frame-Options header you need to disable

X-Frame-Options SAMEORIGIN blocking iframe on my domain

时光怂恿深爱的人放手 提交于 2019-11-28 03:12:08
问题 i'm using http://www.jacklmoore.com/colorbox to display the content of an url in a lightbox. after implementation, the colorbox did'nt showed anything. Later, i noticed the following error in chrome logs: Refused to display document because display forbidden by X-Frame-Options. so after documenting i added the following line to the root .htaccess of the website : Header always append X-Frame-Options SAMEORIGIN to allow iframe embedding on my own domain. But i still get the error, i'm newbie

Load denied by X-Frame-Options: does not permit framing

北城以北 提交于 2019-11-27 22:44:57
I'm going to create a website which — in addition to its own content — would have links (in iframes) to the world biggest newspaper websites like New York Times, Financial Times and some other. But I've faced with a problem of framing permission. For example, NY Times shows me an error Load denied by X-Frame-Options: http://www.nytimes.com/ does not permit framing . I have read many forums and didn't found a workable solution. Tried to add Header always append X-Frame-Options SAMEORIGIN into .haccess file but it didn't help. Is there any way to solve this problem? Some websites have a server

X-Frame-Options: ALLOW-FROM in firefox and chrome

*爱你&永不变心* 提交于 2019-11-27 18:16:00
I'm implementing a "pass-through" for X-Frame-Options to let a partner site wrap my employer's site in an iframe, as per this article: http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx (splitting up URLS to post) In a nutshell, our partner's page has an iframe with an URL against our domain. For any page in our domain, they'll add a special url argument like &@mykey=topleveldomain.com , telling us what the page's top level domain is. Our filters pick up the partner TLD, if provided, from the URL, and validate it against a whitelist. If it's

How to override X-Frame-Options for a controller or action in Rails 4

这一生的挚爱 提交于 2019-11-27 17:25:42
Rails 4 appears to set a default value of SAMEORIGIN for the X-Frame-Options HTTP response header. This is great for security, but it does not allow for parts of your app to be available in an iframe on a different domain. You can override the value of X-Frame-Options globally using the config.action_dispatch.default_headers setting: config.action_dispatch.default_headers['X-Frame-Options'] = "ALLOW-FROM https://apps.facebook.com" But how do you override it for just a single controller or action? If you want to remove the header completely, you can create an after_action filter: class

Error: Permission denied to access property 'document'

邮差的信 提交于 2019-11-27 14:12:41
I am continuously getting the error "Error: Permission denied to access property 'document'" while i have already define in my X-FRAME options to allow the other domain, like this.. <?php header('X-Frame-Options: ALLOW-FROM http://mydomain.com'); ?> Below is the header of iframe request, clearly shows i have defined to allow the domain to access the iframe but not working. All i want is to resize the iframe using javascript. Here is my javascript code to resize the iframe height. <iframe src="http://mydomain.com/xxx/yyy" id="idIframe" onload="iframeLoaded();" allowtransparency="true"

X-Frame-Options on apache

落花浮王杯 提交于 2019-11-27 11:45:00
问题 I am trying to allow some particular domain to access my site via iframe Header set X-Frame-Options ALLOW-FROM https://www.that-site.com I know this could be done by add the line above to the config of Apache server. Two questions here. 1) which config file should be added to? The apache running on both Unix and windows, if not the same file 2) while enable the all-from, I still want to be able to run some iframe from my own domain. Can I just add the following line after the allow-from?

Why Iframe dosen't work for yahoo.com

橙三吉。 提交于 2019-11-27 08:21:18
问题 I find this doesn't work: <iframe src="http://www.yahoo.com"> </iframe> I have read this question, but I don't understand what they mean by add: <?php header('X-Frame-Options: GOFORIT'); ?> I tried to add this to the top of my html file(change it to php file, of course), and my php file became: <?php header('X-Frame-Options: GOFORIT'); ?> <iframe src="http://www.yahoo.com"> </iframe> I run it in my appserv(with php 5.2.6), and it doesn't work. Could anybody explain what should I do exactly to

How to disable 'X-Frame-Options' response header in Spring Security?

落花浮王杯 提交于 2019-11-27 06:35:29
I have CKeditor on my jsp and whenever I upload something, the following error pops out: Refused to display 'http://localhost:8080/xxx/xxx/upload-image?CKEditor=text&CKEditorFuncNum=1&langCode=ru' in a frame because it set 'X-Frame-Options' to 'DENY'. I have tried removing Spring Security and everything works like a charm. How can I disable this in spring security xml file? What should I write between <http> tags vtor By default X-Frame-Options is set to denied, to prevent clickjacking attacks. To override this, you can add the following into your spring security config <http> <headers> <frame

How do I get Sinatra to refrain from adding the X-Frame-Options header?

旧街凉风 提交于 2019-11-27 05:27:50
问题 I am using Sinatra to return some IFRAME contents, and I'd like to allow cross-domain src. Unfortunately, Sinatra is automatically adding an X-Frame-Options header to my response. How do I turn that off? 回答1: Sinatra uses Rack::Protection, in particular the frame_options option, which is what is setting the X-Frame-Options header. You can configure which protections are used. Sinatra turns most of them on by default, (some are only enabled if you also are using sessions, and Rack::Protection