List Info

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




possible to alter headers ? - or "frame busting" !
user name
2006-03-31 11:25:10
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

... so is there any way for me to add arbitrary HTTP headers
to the
output from CP (I would prefer not to use filters [not sure
how they
would be applicable in this type of "that screen but
no others case"]
but if it has to be I'm open to it).

In case it's relevant ... I do the redirection by something
like this
...

raise cherrypy.InternalRedirect(a,b)

... where b is a set of GET parameters in a string.

thanks

Richard.


--~--~---------~--~----~------------~-------~--~----~
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-03-31 14:33:46
I am not sure how to do this with cherrypy headers, it may
be possible,
but have you considered using javascript to do this on the
onload
event? Its fairly easy to break out of frames with
javascript.


--~--~---------~--~----~------------~-------~--~----~
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 )