@enrico-g
The same-origin policy restricts how a document or script loaded from one origin can interact with a resource from another origin. For further details please refer the following links:
[1]. Same Origin Ploicy
[2]. Stackoverflow thread
—-
Bivek Singh