Page MenuHomePhabricator

maps.wikimedia.org and Wikivoyage: CORS header 'Access-Control-Allow-Origin' missing
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

The requests were made by Javascript calls of Kartographer.

What happens?:

Some failure messages occur: "Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf https://maps.wikimedia.org/geoshape?getgeojson=1&ids=Q690417. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt)."

Translation: Cross-origin request blocked: The same-source rule prohibits reading the external resource on https://maps.wikimedia.org/geoshape?getgeojson=1&ids=Q690417. (Reason: CORS header 'Access-Control-Allow-Origin' is missing).

What should have happened instead?:

The call of https://maps.wikimedia.org/geoshape should no be blocked.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Wikivoyage; Firefox90.0.2 (64-Bit)

Solution:

It seems to be an Apache configuration failure.

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin