Skip to main content

setting allowXDomain on XmlHttpProxyServlet

2 replies [Last post]
ziebold
Offline
Joined: 2006-07-18
Points: 0

I am trying to confirm how you would set the init param allowXdomain for the XmlHttpProxyServlet. In the web.xml for my jmaki application, I have specified:

XmlHttpProxy
com.sun.jmaki.services.XmlHttpProxyServlet

allowXDomain
true

However, debug code shows that XmlHttpProxyServlet is not reading the init param

public void init(ServletConfig config) throws ServletException {
super.init(config);
ctx = config.getServletContext();
String xdomainString = ctx.getInitParameter("allowXDomain");
getLogger().severe("XmlHttpProxyServlet: allowXDomain=" + xdomainString);
if (xdomainString != null) {
...

Debug message shows:
XmlHttpProxyServlet: allowXDomain=null

I think I must be missing something obvious?

TIA

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Actually it's a servlet context parameter used:

Try:

allowXDomain true

Let us know if this doesn't work.

-Greg

ziebold
Offline
Joined: 2006-07-18
Points: 0

That worked. allowXDomain as a context-param.