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

Add support for custom http headers (cookies/auth tokens/etc) #14

Open
unixfox opened this issue Feb 21, 2019 · 3 comments
Open

Add support for custom http headers (cookies/auth tokens/etc) #14

unixfox opened this issue Feb 21, 2019 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@unixfox
Copy link

unixfox commented Feb 21, 2019

I can't currently use the tool on a page behind a login page. Is there a possibility to add cookie or custom HTTP header support so that I can specify a cookie to use the tool on a page that requires for example a login before accessing to it?

@timqian
Copy link
Member

timqian commented Feb 22, 2019

Hi @unixfox I am considering to add the functionality of recording actions and replay for cloudquery. Similar to https://github.com/checkly/puppeteer-recorder. In this way, requests like yours will be possible.

But I am not sure if many people will need this feature.

what are you building using cloudquery?

@unixfox
Copy link
Author

unixfox commented Feb 22, 2019

Hey @timqian thank you for your quick reply.

That would great but isn't it a bit overkill for my request? Because if you would just implement page.setCookie() or page.setExtraHTTPHeaders() into cloudquery that would work too.

I plan to use cloudquery on my school's website portal which requires to be logged in with a student account. I'll develop a program that post automatically the school's news to a Facebook messenger group with a lot of students of my class.

@timqian
Copy link
Member

timqian commented Feb 23, 2019

Yeah, It will be a good improvement to have an optional input field to let user input customed header.
The code is quite simple, are you interested in sending a PR?

@timqian timqian added enhancement New feature or request help wanted Extra attention is needed labels Feb 23, 2019
@timqian timqian changed the title Cookie or custom http header support Add support for custom http headers (cookies/auth tokens/etc) Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

No branches or pull requests

2 participants