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

putting dynamic headers in proxy requests #96

Closed
tansaku opened this issue Mar 3, 2021 · 2 comments
Closed

putting dynamic headers in proxy requests #96

tansaku opened this issue Mar 3, 2021 · 2 comments

Comments

@tansaku
Copy link

tansaku commented Mar 3, 2021

Similar to #30 I'm trying to put a dynamic header in proxy requests. At the moment I have a piece of middleware that requests data via an API and puts it in the store.

I thought there would be a template for creating this issue, but didn't immediately see one. Will happily edit request/question if needed.

Many thanks in advance

Copy link
Member

farnabaz commented Mar 5, 2021

Hi,
Do you mind create a reproduction using template.nuxtjs.org

@tansaku
Copy link
Author

tansaku commented Mar 15, 2021

I found a way round it by having the store api getters access the id set by the middleware. Maybe the proxy is just not meant to have store access? I'll do a reproduction if it becomes critical to have this happen in the proxy ...

@tansaku tansaku closed this as completed Mar 15, 2021
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