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.