Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS error #118

Open
Sioweb opened this issue Apr 1, 2019 · 0 comments
Open

CORS error #118

Sioweb opened this issue Apr 1, 2019 · 0 comments

Comments

@Sioweb
Copy link

Sioweb commented Apr 1, 2019

Ho!

wir bekamen folgenden Fehler in der Konsole:

Access to script at 'https://maps.googleapis.com/maps/api/js?key=CODE&language=de' from origin 'https://www.seipp.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Der Grund war, dass das Script mit https:// geladen wird, folgender Fix hat den Fehler behoben:

templates/ce_dlh_googlemaps_default.html5

<?php
if($_COOKIE['dlh_googlemaps'] || $this->map['protected']!='1'):
$GLOBALS['TL_JAVASCRIPT'][] = '//maps.googleapis.com/maps/api/js?key=' . $this->map['key'] . '&language=' . $this->map['language'];
$this->map['privacy'] == '';
endif;
?>

Danke für das Modul, funktioniert bei uns auch in 4.7 perfekt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant