Closed joshuagraber closed 5 months ago
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
my steps:
.env
file with VITE_MAPBOX_TOKEN
and VITE_POSITION_STACK_TOKEN
npm i
npm run dev
http://localhost:8888/
as instructedI'm getting a PDAP logo then ~100vh of blank space before the footer. Console says I am erroring
DataSourceMap.vue:109
GET https://api.positionstack.com/v1/reverse?access_key=74903621f8c3e4a1e2c8aa3554a7f268&query=100.6.7.84 403 (Forbidden)
DataSourceMap.vue:111 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'message')
at DataSourceMap.vue:111:39
at async geocodeReverse (DataSourceMap.vue:108:9)
at async DataSourceMap.vue:28:23
At the https://api.positionstack.com/v1/reverse...
url, I'm getting:
"error": {
"code": "https_access_restricted",
"message": "Access Restricted - Your current Subscription Plan does not support HTTPS Encryption."
}
}
@josh-chamberlain Do you have some kind of "https everywhere" setting switched on in your browser? The positionstack API (the thing I'm currently using for geocoding for the POC) only allows https on paid plans. The urls are set to http, but some browsers have a security setting that overrides this.
This won't be a problem once we're returning lat/lng from the API, but just for now it's a little headache.
@joshuagraber nice, I fixed it by clearing localhost:8888/
from chrome://net-internals/#hsts
then clearing my cache. The map loads!
I see this is just a draft, I may have got excited
I hadn't opened for review, but I agree, this makes sense as a starting point. Marked as ready for review, will add README stuff and merge.
fixes #5