Page MenuHomePhabricator

Could not load image: Resource on other subdomain not allowed by Access-Control-Allow-Origin
Closed, InvalidPublic

Description

I have two errors.
First, I click the image and it opens with the like in the error details.
Sorry, im a beginner with Mediawiki :-/.

The console said:

[Error] Origin https://de.xxx.org is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://de.xxx.org is not allowed by Access-Control-Allow-Origin. (Beispiel.jpg, line 0)
[Error] XMLHttpRequest cannot load https://pool.xxx.org/wiki/images/2/23/Beispiel.jpg due to access control checks.
[Error] Origin https://de.xxx.org is not allowed by Access-Control-Allow-Origin.
[Error] Failed to load resource: Origin https://de.xxx.org is not allowed by Access-Control-Allow-Origin. (Beispiel.jpg, line 0)
[Error] Cross-origin image load denied by Cross-Origin Resource Sharing policy.

Error details:

error: could not load image from https://pool.xxx.org/wiki/images/2/23/Beispiel.jpg
URL: https://de.xxx.org/wiki/Hauptseite#/media/File:Beispiel.jpg
user agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
screen size: 1680x1050
canvas size: 1168x493
image size: 200x423
thumbnail size: CSS: 233x493, screen width: 466, real width: 800

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Second error are the links in the footer from media viewer. when I click for example the license link it opens https://commons.wikimedia.org/wiki/File:Beispiel.jpg

I don't know where I can edit the links, sorry...

Hi @DerBrezelmann, thanks for taking the time to report this!

Whoever maintains https://de.xxx.org and https://pool.xxx.org/ needs to make the server deliver an Access-Control-Allow-Origin header to allow access to the other subdomain.
This is not a bug in MultimediaViewer but a server misconfiguration, hence closing this task as invalid as there is nothing that Wikimedia can do about the configuration of a third party website.

The second error (?) sounds like a general support question how to do things. Feel free to use https://www.mediawiki.org/wiki/Project:Support_desk - thanks!

Aklapper renamed this task from Could not load image to Could not load image: Resource on other subdomain not allowed by Access-Control-Allow-Origin.May 11 2018, 9:19 AM

Ok, thank you. Access-Control-Allow-Origin was fine for me.

Vvjjkkii renamed this task from Could not load image: Resource on other subdomain not allowed by Access-Control-Allow-Origin to o5caaaaaaa.Jul 1 2018, 1:10 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
Reedy renamed this task from o5caaaaaaa to Could not load image: Resource on other subdomain not allowed by Access-Control-Allow-Origin.Jul 1 2018, 4:16 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot added a subscriber: Aklapper.