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

Support passing HTTP headers to the GeoTiff request #77

Open
m-mohr opened this issue Aug 1, 2023 · 4 comments
Open

Support passing HTTP headers to the GeoTiff request #77

m-mohr opened this issue Aug 1, 2023 · 4 comments

Comments

@m-mohr
Copy link

m-mohr commented Aug 1, 2023

Is your feature request related to a problem? Please describe.

I have COGs that I need a Bearer token to via a HTTP header.

Describe the solution you'd like

I'd like to be able to pass options to the HTTP request. This should be possible to provide to the fromUrl(s) methods of geotiff.js.
OpenLayers also does it and could be used as a reference.

Additional context
Code: https://github.com/GeoTIFF/georaster/blob/master/src/index.js#L94

Related issues:

@ajgrowney
Copy link
Contributor

We ran into this same issue at Maxar and have a local build of this package with this fix. I'll try to put out a PR for it this week to see if it meets your needs too.

@ajgrowney
Copy link
Contributor

@DanielJDufour I have a local branch ready to open a pull request but get the following error:
remote: Permission to GeoTIFF/georaster.git denied to ajgrowney.
Are there any prerequisites to being a contributor?

@m-mohr
Copy link
Author

m-mohr commented Aug 4, 2023

You can fork the repo, commit there and then open a PR from it to this repo, no?

@DanielJDufour
Copy link
Member

👋 Thanks for all your help! I just published a new version of georaster under the @next tag. If you have time, please let me know if it works for you!

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

3 participants