Comments (2)
Probably, would be great to add an additional attempt to extract any API key from the request "get" parameters, right here:
Lines 122 to 123 in 57c95db
Something like that:
auth := r.Header.Get("Authorization")
if auth == "" {
if auth = r.URL.Query().Get("api-key"); auth == "" {
return "", guru.New(http.StatusUnauthorized, "no Authorization no header nor get parameter")
} else {
auth = "Bearer " + auth
}
}
from goatcounter.
Oh my gosh, it seems I was blind (as usual)...
https://www.goatcounter.com/help/visitor-counter
https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2FMY_ACCOUNT.goatcounter.com%2Fcounter%2F%2FPAGE_URL_ON_MY_SITE.json&query=%24.count&label=blabla
from goatcounter.
Related Issues (20)
- How do I exclude my domain from the list of referrers HOT 4
- How to track search terms HOT 6
- open for design updates? HOT 3
- TLS certs on goatcounter.com hosted service have expired (09-Apr-2024 23:59:59 GMT) HOT 5
- Multi-domain confusion HOT 3
- zgo.at and the lighthouse score (cache policy) HOT 3
- Should custom subdomain be used in the script? HOT 2
- site.cname already exists error
- Having both overall and per site statistics HOT 6
- Confusing naming for Import, Export/Import and export HOT 3
- Typo on help page HOT 1
- Connection refused - Hugo and MX Linux HOT 2
- [bug] /settings/delete-account renders sites without subdomains HOT 1
- No data received HOT 1
- The site cannot be reached
- Exporting data is not working as expected HOT 1
- See on which pages an event was fired HOT 2
- Running goat counter on non-/ base url HOT 2
- Delete records from pages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goatcounter.