{ Dev Farm }

Web & Windows Development

Download not working anymore with Chrome

Home Forum Wp Gpx Maps Support Download not working anymore with Chrome

  • Questo topic ha 0 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 7 anni, 2 mesi fa da Boneshaker.
Stai visualizzando 1 post (di 1 totali)
  • Autore
    Post
  • #85860 Rispondi
    Boneshaker
    Ospite

    Hi,

    I’ve been using this great plugin for about a year and lately one user of my website noticed that you were not able to dwonaload GPX files with Chrome (still working fine with Firefox.
    It seems to be related to cross-site download (see https://stackoverflow.com/questions/49474775/chrome-65-blocks-cross-origin-a-download-client-side-workaround-to-force-down).
    Even if the GPX files are on the same site, as wp-gpx-map use a full URL instead of a relative path, chrome consider it as external.
    I’v fixed it by removing:

    // wpml fix
    $dummy = ( defined('WP_SITEURL') ) ? WP_SITEURL : get_bloginfo('url');
    $gpxurl = $dummy.$gpxurl;

    in wp-gpx-maps.php.

Stai visualizzando 1 post (di 1 totali)
Rispondi a: Download not working anymore with Chrome

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.