Adams Web doesn't work when opened with a link

Problem

When opening Adams Web using a link in a different application, such as email or an RMS system, Adams Web does not work properly. Then menu isn’t all there and clicking on items does nothing.

The browser’s console will show multiple errors similar to:

Uncaught DOMException: Blocked a frame with origin ““ from accessing a cross-origin frame.

Workaround

Copy and paste the URL into a new tab and Adams Web will load correctly.

Solution

A change in Chome and Edge Chromium introduced new cross-origin policies. When a link (HTML anchor tag) uses a target of _blank the browser blocks the new tab from loading resources because it believes they are cross-origin.

An example link that exhibits this error is:

<a href="https://myserver.myagency.org/AdamsWeb" target="_blank">Adams Web</a>

The fix is that the source of the link must specify that the page being opened isn’t related to the source page. This is done by adding a rel attribute to the anchor tag with noopener and noreferrer values.

The above link then looks like this:

<a href="https://myserver.myagency.org/AdamsWeb" target="_blank" rel="noopener noreferrer">Adams Web</a>

This link will open Adams Web with all resources loaded.

See Also

Link with target=“_blank” and rel=“noopener noreferrer” still vulnerable?

© 2023 Foray, LLC - All Rights Reserved