-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Both Hive Gateway and Apollo Router follow the similar approaches on CSRF
The only difference is the default. By default, Hive Gateway doesn't have it, and Apollo Router has it in production mode.
The configuration is very simple. It is a list of the headers;
csrf:
required-headers:
- X-Apollo-Operation-Name
In case of enabling this feature, the router will check if one of the following conditions met;
Content-Type
other thantext/plain
,application/x-www-form-urlencoded
ormultipart/form-data
- One of the required headers exist
References
Metadata
Metadata
Assignees
Labels
No labels