Giter VIP home page Giter VIP logo

Comments (7)

mmd-osm avatar mmd-osm commented on June 6, 2024 2

Force redirect has been discussed in #336. I think it would probably be somewhat annoying for people running their own Overpass instances over http... YMMV.

"such behaviour should be visibly documented" might be a good alternative.

from overpass-turbo.

mnalis avatar mnalis commented on June 6, 2024 1

found it!

Just typing overpass-turbo.eu in web browsers opens plain http connection to http://overpass-turbo.eu/ which does not offer OSM Save/Load functionality (but works otherwise) !

Manually opening https site with https://overpass-turbo.eu/ does offer Saved Queries (osm.org) 😃

Perhaps http site should force-redirect to https, or at least use HSTS to avoid such behaviour?

Or at least such behaviour should be visibly documented (e.g. show Load from OSM but have text Must use https://overpass-turbo.eu to use this functionality below it instead of Load button)

from overpass-turbo.

mnalis avatar mnalis commented on June 6, 2024

I'm missing that Save to OSM / Load from OSM functionality too, and have several complex / important queries saved there which I can no longer access 😭

(I do not use local saving to browser cookies/site data, as I use Overpass Turbo at multiple browsers with multiple computers, and in addition some browsers seems to be clearing that local data sometimes)

Can we have that feature back please?

from overpass-turbo.

mmd-osm avatar mmd-osm commented on June 6, 2024

It's still working for me. Try to logout, then hit "Load" again, then again "Load" on the popup. Sign in to OSM and authorize overpass turbo.

grafik

from overpass-turbo.

mnalis avatar mnalis commented on June 6, 2024

Try to logout, then hit "Load" again, then again "Load" on the popup

I would, but the Logout button is missing too (Even after force-refreshing with ctrl+f5):

Screenshot 2023-10-26 at 22-25-59 overpass turbo
Screenshot 2023-10-26 at 22-26-12 overpass turbo

I've tried clearing cookies and local storage for overpass-turbo.eu domain, as well as revoking Overpass turbo OAuth1 authorizations; but it still doesn't help. Firefox 115.4.0esr. Any hint what else to try? I really don't want to erase all cache / site data in Firefox for all sites 🙀

from overpass-turbo.

CapitaineMoustache avatar CapitaineMoustache commented on June 6, 2024

Thanks a lot @mnalis!
That was a HTTPS issue!

found it!

Just typing overpass-turbo.eu in web browsers opens plain http connection to http://overpass-turbo.eu/ which does not offer OSM Save/Load functionality (but works otherwise) !

Manually opening https site with https://overpass-turbo.eu/ does offer Saved Queries (osm.org) 😃

Perhaps http site should force-redirect to https, or at least use HSTS to avoid such behaviour?

Or at least such behaviour should be visibly documented (e.g. show Load from OSM but have text Must use https://overpass-turbo.eu to use this functionality below it instead of Load button)

from overpass-turbo.

mnalis avatar mnalis commented on June 6, 2024

Just to note that my solution ended up being turning on "Enable HTTPS-Only Mode in all windows" setting in my Firefox, which fixed the issue permanently, and I'd like to thank overpass-turbo to giving me a final nudge to do that 😸

I'd still recommend it would be nice for all unsuspecting users if there was a message that the functionality is disabled. I guess somewhere around here:

overpass-turbo/js/ide.ts

Lines 1318 to 1334 in 9cc1d47

if (location.protocol === "https:" || location.hostname === "127.0.0.1") {
ui.show();
ui.find(".panel-block").remove();
$('<div class="panel-block">')
.append(
$(
`<button class='button is-link is-outlined t' title='load.title'>${i18n.t(
"load.title"
)}</button>`
).on("click", () => {
ide.loadOsmQueries();
})
)
.appendTo(ui);
} else {
ui.hide();
}

from overpass-turbo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.