cancel
Showing results for 
Search instead for 
Did you mean: 

EP Domain Relaxing

Former Member
0 Kudos

Hello,

I have a question about domain relaxing in URL iViews. In the examples I have seen, the EPCF only removes the server name. My problem is that I need it to go further. The examples I have seen are like this:

Portal Server = portal.company.com

Content Server = content.company.com

The domain can then be set to "company.com" for both of these windows thus allowing cross frame scripting. My question is about the following scenario:

Portal Server = portal.fm.company.com

Content Server = content.cn.company.com

When the domain is relaxed by the portal, it only removes the server so you end up with "fm.company.com" for the portal which can then not communicate with the content server since it is "cn.company.com". It is easy to set the content server domain to "company.com" but how do I set the portal server so that it goes to "company.com"? I have seen references to Maximum Relaxing in BSP with the sap-domainRelax parameter but have not seen how this can be accomplished with a URL iView in the portal. Is this a configuration setting somewhere? Any help on this would be greatly appreciated. Thanks...

Mike

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Anyone happen to have an idea on this? Thanks...

Mike

Former Member
0 Kudos

Hi Mike,

Which EPCF code were u using for domain relaxing.

I have got one JavaScript which can be put into HTMLs. This JavaScript has been given by SAP only for domain relaxing.

<i><SCRIPT>

function relaxDomain(input)

{

if (input.search(/^
d+
.
d+
.
d+
.
d+$/) >=0 )

{

return input;

}

var lnDotPos = input.indexOf(".");

return (lnDotPos >= 0) ? input.substr( lnDotPos + 1 ) : input;

}

var result = relaxDomain(document.domain);

if(result != document.domain)

{

document.domain = result;

}

alert(document.domain);

</SCRIPT></i>

Let me know if this solves our problem.

Regards

Gaurav Gandhi