generated from apollographql/typescript-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hello,
We are using Apollo Server v4, and we have copied custom logic from PR #66 to support our new changes. Today, we see support from this package; however, after updating it, all APIs fail due to content-type. Is it possible to set a content type header for all POST requests?
Example
server.startInBackgroundHandlingStartupErrorsByLoggingAndFailingAllRequests();
return async (req: HttpRequest, context: InvocationContext) => {
if(req.method === 'POST') {
req.headers.set('content-type', 'application/json')
}
Metadata
Metadata
Assignees
Labels
No labels