Skip to content

***Help | V2 is breaking for Apollo Server V4 #69

@smo043

Description

@smo043

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions