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

Console error "grpc-status", "grpc-message" while data successfully come back #659

Closed
zsluedem opened this issue Oct 18, 2019 · 4 comments · Fixed by #663
Closed

Console error "grpc-status", "grpc-message" while data successfully come back #659

zsluedem opened this issue Oct 18, 2019 · 4 comments · Fixed by #663

Comments

@zsluedem
Copy link
Contributor

I am using a nginx proxy which is compiled according to docker example in the repo.

I send a request to the proxy and it can receive the data correctly while the console would log a lot of errors.

Refused to get unsafe header "grpc-status"
Refused to get unsafe header "grpc-message"

image

@sirudog
Copy link

sirudog commented Oct 18, 2019

I think you should add this to your nginx config to expose these headers to the browser:
add_header 'Access-Control-Expose-Headers' 'Content-Transfer-Encoding,Grpc-Message,Grpc-Status'
Hope this helps

@stanley-cheung
Copy link
Collaborator

Yes you need to white list those headers in your nginx.conf

@stanley-cheung
Copy link
Collaborator

I see. We probably miss that in our own example nginx.conf. We should probably fix it.

@zsluedem
Copy link
Contributor Author

@stanley-cheung #663

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

Successfully merging a pull request may close this issue.

3 participants