Avoid cross-domain ajax requests from user subdomains (bug #1006634)
When cleanurlusersubdomains is on, ajax requests might come from
somewhere other than the wwwroot. To avoid cross-domain requests,
this patch will set a javascript variable whenever a page is on a
subdomain. The ajax wrapper function sendjsonrequest rewrites its url
using the variable if necessary.
Change-Id: If8a625268895fe1b239f76d515dbd17debe0035e
Signed-off-by:
Richard Mansfield <richard.mansfield@catalyst.net.nz>
Please register or sign in to comment