[openstreetmap/openstreetmap-website] Image download w/ submit_tag (PR #6192)
mmd
notifications at github.com
Thu Jul 17 05:46:05 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192)
I think we could skip the cookie altogether:
>From app/controllers/application_controller.rb -> update_totp -> generates new TOTP cookie today.
`ROTP::TOTP.new(Settings.totp_key, :interval => 3600).now` needs to be added to app/controllers/export_controller.rb and passed as URL parameter to the render.osm.org URL.
Render script needs to be enhanced to check new URL parameter next to the cookie.
Thunderforest layers already work without showing signs of CORS issues, although the request gets lots somewhere in turbo:before-fetch-response / turbo:submit-end events. At one point it tries to parse the PNG image as HTML, which fails then silently discards the image. I guess some additional event handling would be needed here.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6192#issuecomment-3082634922
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6192/c3082634922 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250716/be75f188/attachment.htm>
More information about the rails-dev
mailing list