sharedstreets / mobility-metrics

Tools for collecting, processing, and interpreting mobility data using SharedStreets
MIT License
50 stars 17 forks source link

Add User-Agent to Header #116

Open kphaneuf opened 3 years ago

kphaneuf commented 3 years ago

We recently had issues accessing a vendors MDS via the tool (version 4.6.1) and found that the problem was that there was no User-Agent being passed from the tool. Before I start editing the JS, I wanted to post here in case this should be added to the tool.

kphaneuf commented 3 years ago

I updated the mds.js file to include "User-Agent": "Shared Streets MicroMobility Tool" in all the headers. This fixed our issue.

kphaneuf commented 3 years ago

Also, the vendor had recently implemented a security measure requiring that header attribute which is why it was not an issue in the past.