List Info

Thread: possible to alter headers ? - or "frame busting" !




possible to alter headers ? - or "frame busting" !
user name
2006-03-31 17:44:46
northof40 wrote:
> Hi - I've got a situation when from within a frameset
a user does a
> particular action I force them off to do a logon
procedure.
> 
> I want the logon screen to *not* be in a frameset and
to this end I've
> tried doing this ...
> 
> cherrypy.response.headers['Window-target'] = '_top'
> 
> TypeError: object does not support item assignment

This should not be happening (plenty of examples within
CherryPy of
"assignment to response.headers" working just
fine; e.g. gzipfilter). Is
it possible you've replaced response.headers somewhere with
some other
object?

(To echo thakadu's javascript solution) see also
"Fourth try" at:
htt
p://www.jahns-home.de/rentmei/html/frames.html


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

possible to alter headers ? - or "frame busting" !
user name
2006-04-01 12:45:45

Robert Brewer wrote:

> northof40 wrote:
> > Hi - I've got a situation when from within a
frameset a user does a
> > particular action I force them off to do a logon
procedure.
> >
> > I want the logon screen to *not* be in a frameset
and to this end I've
> > tried doing this ...
> >
> > cherrypy.response.headers['Window-target'] =
'_top'

As far as I can see the problem was that I should have been
referencing
...

cherrpy.response.HeaderMap['Window-target'] = '_top'

... c.r.headers is a different animal (I'm taking ...

http://www.cherrypy.org/cherrypy-2.
1.0/docs/book/chunk/ch03s03.html#id3049875

(http://tinyurl.com/qhhtr
) as my reference here.

Having said that it still doesn't do what I want it to do
(ie break out
of the frame) so I'm doing what thakdu suggested.

thanks to both of you.

r.




> >
> > TypeError: object does not support item assignment
>
> This should not be happening (plenty of examples within
CherryPy of
> "assignment to response.headers" working
just fine; e.g. gzipfilter). Is
> it possible you've replaced response.headers somewhere
with some other
> object?
>
> (To echo thakadu's javascript solution) see also
"Fourth try" at:
> htt
p://www.jahns-home.de/rentmei/html/frames.html
>
>
> Robert Brewer
> System Architect
> Amor Ministries
> fumanchuamor.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )