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

A graphQL payload limit #10

Open
fabiosantoscode opened this issue Jan 29, 2016 · 0 comments
Open

A graphQL payload limit #10

fabiosantoscode opened this issue Jan 29, 2016 · 0 comments

Comments

@fabiosantoscode
Copy link

It's bad practice to allow unbounded payloads to reach any given endpoint, and I feel that a graphQL endpoint, which exposes an interpreted DSL capable of triggering a lot of things, is an excellent example.

I have tried to change the route.config.payload.maxBytes value, on my side, to a very conservative 1024 bytes, but hapi wouldn't allow my configuration, since the possible methods are set to ['get', 'post'] and the GET verb doesn't allow for a request payload.

Could the maximum allowed payload be limited through an external option?

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

1 participant