[RESOLVED] [X-FRAME-OPTIONS] How to properly set it up?

Ask for help about NoScript, no registration needed to post
skipbr
Posts: 3
Joined: Sun May 23, 2010 1:05 pm

[RESOLVED] [X-FRAME-OPTIONS] How to properly set it up?

Post by skipbr »

Ok, after spend an hour (or two) reading throught some topics I still haven't found a way to fix my problem.

Several month ago, an orkut app just stop working after a NoScript update. I found it pretty annoying having an warning "This content cannot be displayed in a frame" but I still could click on the link "Click here to open this content in a new window" and reloading the page would allow me to use the app.
However, after another update, this trick no longer works and I have to switch to Google Chrome to use that app (Note this works fine in Chrome, Opera 10+, IE7/8).

After some google I found out that I can simple turn noscript.frameOptions.enabled = false and have this app working, but it feels like opening the door to some stranger.
Also, after turn it off, NoScript started to throw several warning/errors messages regarding security issues in the error console and the noscript.frameOptions.parentWhitelist didn't seem to work when adding others domains (used space, semi-colon, comma, dot to separate multiple values)

Bottom line, is there a way to have it working just by setting an XSS/ABE rulerset?

Right now I have whitelisted all domains listed in the error message (read below) but I didn't help either.

Console message

Code: Select all

X-FRAME-OPTIONS: blocked http://www.orkut.gmodules.com/gadgets/proxy/refresh=10800&container=orkut&gadget=http%3A%2F%2Fbuddypoke.s3.amazonaws.com%2Forkut.xml/http://buddypokeapp.appspot.com/static/vc19/swften/BuddyPoke2Streamer.swf?rel=xmas19&sv=3.010&s=5
NoScript 1.9.9.79
Firefox/Pale Moon 3.6.3
Others addons: Adblock Plus, Adblock Plus Element Hiding Helper, Greasemonkey, Stylish, Orkut Manager.
Last edited by skipbr on Fri May 28, 2010 12:39 am, edited 1 time in total.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100403 Firefox/3.6.3 (Palemoon/3.6.3) (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: [X-FRAME-OPTIONS] How to properly set it up?

Post by Giorgio Maone »

What's the (parent) URL where this happens?
BTW, that's the address which you should add (unless I found this being a bug) to the noscript.frameOptions.parentWhitelist preference (space-separated).
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
skipbr
Posts: 3
Joined: Sun May 23, 2010 1:05 pm

Re: [X-FRAME-OPTIONS] How to properly set it up?

Post by skipbr »

Giorgio Maone wrote:What's the (parent) URL where this happens?
BTW, that's the address which you should add (unless I found this being a bug) to the noscript.frameOptions.parentWhitelist preference (space-separated).
http://www.orkut.com
http://www.orkut.com.br

both are in the whitelist btw.

No bug... I was just adding the wrong url :oops:
It's working fine now.

Should I worry about this?

Code: Select all

Error: Permission denied for <http://bipq8hub3ub1r4mcejdm9urlpd456fkn.43931632273.a.orkut.gmodules.com> to call method Location.toString on <http://www.orkut.com.br>.

Thanks!
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: [X-FRAME-OPTIONS] How to properly set it up?

Post by Giorgio Maone »

skipbr wrote: Should I worry about this?

Code: Select all

Error: Permission denied for <http://bipq8hub3ub1r4mcejdm9urlpd456fkn.43931632273.a.orkut.gmodules.com> to call method Location.toString on <http://www.orkut.com.br>.
Nothing to worry about.

Could you please give me more details on how to reproduce your original issue, so I can check whether my X-FRAME-OPTIONS implementation has a bug or not?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
skipbr
Posts: 3
Joined: Sun May 23, 2010 1:05 pm

Re: [X-FRAME-OPTIONS] How to properly set it up?

Post by skipbr »

Giorgio Maone wrote:Could you please give me more details on how to reproduce your original issue, so I can check whether my X-FRAME-OPTIONS implementation has a bug or not?
Join http://www.orkut.com
Add the Buddypoke to your account

Once you add it, it'll be available in your profile (using the new orkut layout: Home -> +more -> BuddyPoke or under the old layout: My Apps menu.

If anything had changed, you'll get the This content cannot be displayed in a frame message.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100403 Firefox/3.6.3 (Palemoon/3.6.3) (.NET CLR 3.5.30729)
Post Reply