sparkfun / sparkfun/SparkFun_DataLogger
The SparkFun DataLogger does not send Access-Control-Allow-Origin headers
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 22
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
See “ The SparkFun DataLogger does not send Access-Control-Allow-Origin headers, so browsers block cross-origin file downloads. serve.py replaces python3 -m http.server by serving static files AND proxying requests with CORS headers added.”
In https://github.com/falkorichter/fork_Adafruit_CircuitPython_SSD1305/pull/54#discussion_r2779433106
If the logger would add the header, we would be able to read the logs from static html hosted sites as shown in the above pr.
“Access-Control-Allow-Origin: *” would be it
Documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with serve.py, which is mentioned as the reference server, and locate the DataLogger code that serves or proxies file-download requests. Compare its response behavior with the requested Access-Control-Allow-Origin: * header and determine how downloads are exposed to browser clients. No repository file or test is named, so completion would require adding the header and verifying cross-origin log downloads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, python
- Domain
- networking, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100