Blocked a frame with origin "http://NEXUSHOST:8081" from accessing a cross-origin frame

Hi,
Something bothered me for a long time, I failed to upload the local jar package in the UI http://NEXUSHOST:8081/#browse/upload:maven-repository and return error information
Blocked a frame with origin “http://NEXUSHOST:8081” from accessing a cross-origin frame


Error log printed in nexus.log org.apache.commons.fileupload.FileUploadException: Early EOF and java.util.concurrent.TimeoutException: Idle timeout expired: 30000/30000 ms
Please suggest a way to mitigate the issue, thanks!

Hard to tell exactly from this… but it seems something is messed up with whatever networking has been put in front of Nexus Repo. If you’re using a reverse proxy be sure to configure it according to our recommendations: https://help.sonatype.com/display/NXRM3/Run+Behind+a+Reverse+Proxy

This error is not a bug. The same-origin policy is a security mechanism that ensures that window objects only have access to the informations they are authorized to get.

The window.postMessage() method provides a controlled mechanism to securely circumvent this Same-Origin Policy restriction. The window.postMessage() safely enables cross-origin communication between Window objects; e.g: between a page and an iframe embedded within it.

postMessage(message, targetOrigin)
postMessage(message, targetOrigin, [transfer])

targetOrigin - specifies what the origin of targetWindow must be for the event to be dispatched, either as the literal string “*” (indicating no preference) or as a URI.