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

Update header before send request #781

Open
Duc-Developer opened this issue Mar 1, 2024 · 2 comments
Open

Update header before send request #781

Duc-Developer opened this issue Mar 1, 2024 · 2 comments

Comments

@Duc-Developer
Copy link

hi @josteink @KartikTalwar , when i check from your source code, i see you used XMLHttpRequest to handle every request.
When i used event gmail.observe.before('send_message',() => {...}), Is there any way I can update header using setRequestHeader
I tried to use it in this event but it doesn't seem to work
image

@josteink
Copy link
Collaborator

josteink commented Mar 1, 2024

I've never tried doing that or created a business-case which depends on such behaviour.

So I really haven't considered that angle much when working with Gmail.js as a maintainer either, to be honest.

If it can be done, I wouldn't know.

@Duc-Developer
Copy link
Author

Thank you for your feedback. I founded a quick solution for my project. I think there will be some cases where this function is needed, maybe you should consider this feature in the future.

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