Legacy Knowledge Base
Published Jul. 2, 2025

Cross domain pages are accessible in DXP 7.2

Written By

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

After creating two websites of different domains user is able to access the pages of other domains as well

Expected results:
www.sitea.com/web/site-a/page1 → Page 1 of site A should accessible with site A domain. www.siteb.com/web/site-a/page1 → Page 1 of Site A should not accessible with the site B domain.

Actual results:
www.sitea.com/web/site-a/page1 → Page 1 of site A is accessible with site A domain.
www.siteb.com/web/site-a/page1 → Page 1 is still accessible with the site B domain.

Environment

  • DXP 7.2

Resolution

  • There is a feature request related to this behavior  LPS-33339 already which has a status 'Aligned with Roadmap', which means sooner this limitation will be overcome in the upcoming release of the Liferay DXP version which will have more strict rules while using site virtual hosts.
  • This feature may get included in the upcoming Liferay version and the implementation of feature requests is left to our product team. 
  • Although, users can opt for this approach in order to overcome this issue
    1). By limiting the web-server paths restrictive rules.
    2). By creating a custom filter to block cross-domain access. 
  • Moreover, If you still need our further assistance regarding this, our Global Services Team would be able to best assist you on this to connect to our Global Services Team you can contact your sales representative to take this forward.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base