fulippo / share-your-garmin-workout

Chrome extension to share your Garmin Connect workout with your friends
MIT License
14 stars 5 forks source link

Issue with Download Button - Not Avaliable #1

Closed seval124 closed 3 years ago

seval124 commented 3 years ago

Looks to be new issues as the Download button is no longer available. I think this is a change by Garmin.

Thank you for creating this app!

seval124 commented 3 years ago

Got it Line 4 on Share-your-workout.js needs to be fixed.

fulippo commented 3 years ago

Hi @seval124, unfortunately changing the endpoint did not work. The download button is correctly injected but the workout's details are not returned. Garmin has added Cloudflare on top of their APIs and they are adding random seeds to the ajax requests to prevent CSRF. I need to figure out how to bypass the protection in order to correctly retrieve the workout details.

seval124 commented 3 years ago

Yep - Just figuring this out. Thank you for the quick Response! :) 👍

wjdannijs commented 3 years ago

I still can download the workout from dev tools -> network -> the specific workout Don't know how to easily translate if to the download button. Hope you can make it work.

fulippo commented 3 years ago

Fixed in 1.0.3