Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to insert headers into tilecache fetch request #116

Open
drzhouq opened this issue Oct 16, 2023 · 1 comment
Open

How to insert headers into tilecache fetch request #116

drzhouq opened this issue Oct 16, 2023 · 1 comment

Comments

@drzhouq
Copy link

drzhouq commented Oct 16, 2023

@bdon I like the idea of pmtiles a lot. However, it seems that there is no easy way to incorporate some security check (via request header token)

fetch(url, { signal: signal })

How would you incorporate the fetch request to pass on additional headers?

Thanks, Brandon, for your fantastic job on PMTiles.

@bdon
Copy link
Member

bdon commented Oct 16, 2023

if you are using pmtiles you can pass a custom FetchSource with your own headers:

https://github.com/protomaps/PMTiles/blob/main/js/index.ts#L287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants