[Zope] Getting Zope to act as if it is in a different domain?
Etienne Labuschagne
ELabuschagne@gims.com
Mon, 3 Dec 2001 11:06:00 +0200
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C17BD9.BA550BE0
Content-Type: text/plain;
charset="iso-8859-1"
Hi there,
Here is my problem:
Web site is served from domain A (an IIS web server)
Web site uses a plugin JavaScript component from web site B (a Zope web
server) which is plugged into a page served by A (not a frame of it's own).
Web site JavaScript plugin opens a new window, creates a form, fills the
form vars and posts it to Zope at B (the plugin uses this method to
communicate with Zope Server)
Zope web site returns a newly created page with the response to the
JavaScript's request entered in a form var.
JavaScript plugin must now access the form var to extract the answer.
This does not work (access denied error) as the JavaScript plugin in page
served from A cannot access elements in page served from B.
Is there a way that I can set the headers/whatever of the page served by
Zope so that it seems as if it was served by A and not by B? (I know how to
get A's domain from HTTP_REFERER, but does not know how to set the
headers/whatever).
I wouldn't be surprised if this is totally impossible (but am REALLY hoping
it is!).
B.t.w. the audience is mostly I.E. browsers - I don't know if this is
browser dependent though.
Thanks
Etienne.
------_=_NextPart_001_01C17BD9.BA550BE0
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Hi
there,</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Here is my
problem:</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Web site is served
from domain A (an IIS web server)</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Web site uses a
plugin JavaScript component from web site B (a Zope web server) which is
plugged into a page served by A (not a frame of it's own).</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Web site JavaScript
plugin opens a new window, creates a form, fills the form vars and posts it
to Zope at B (the plugin uses this method to communicate with Zope
Server)</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Zope web site
returns a newly created page with the response to the JavaScript's request
entered in a form var.</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>JavaScript plugin
must now access the form var to extract the answer.</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>This does not work
(access denied error) as the JavaScript plugin in page served from A cannot
access elements in page served from B.</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>Is there a way that
I can set the headers/whatever of the page served by Zope so that it seems as if
it was served by A and not by B? </FONT></SPAN><SPAN
class=591445408-03122001><FONT face=Tahoma size=2>(I know how to get A's domain
from HTTP_REFERER, but does not know how to set the
headers/whatever).</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>I wouldn't be
surprised if this is totally impossible (but am REALLY hoping it
is!).</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma size=2>B.t.w. the audience
is mostly I.E. browsers - I don't know if this is browser dependent
though.</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=591445408-03122001><FONT face=Tahoma
size=2>Etienne.</FONT></SPAN></DIV></BODY></HTML>
------_=_NextPart_001_01C17BD9.BA550BE0--