diff --git a/implementations/apollo-server/README.md b/implementations/apollo-server/README.md index 18d35d0a..314789fa 100644 --- a/implementations/apollo-server/README.md +++ b/implementations/apollo-server/README.md @@ -4,8 +4,8 @@
22EB
SHOULD accept application/graphql-response+json and match the content-type4655
MUST accept application/json and match the content-type47DE
SHOULD accept */* and use application/json for the content-type80D8
SHOULD assume application/json content-type when accept is missing82A3
MUST use utf-8 encoding when respondingBF61
MUST accept utf-8 encoded request78D5
MUST assume utf-8 in request if encoding is unspecified80D8
SHOULD assume application/json content-type when accept is missing
-{
- "statusText": "Bad Request",
- "status": 400,
- "headers": {
- "x-powered-by": "Express",
- "etag": "W/\"5b5-gDRXf8j0lbjWbmQpeY60iENT2cI\"",
- "date": "",
- "content-type": "application/json; charset=utf-8",
- "content-length": "1461",
- "connection": "close",
- "access-control-allow-origin": "*"
- },
- "body": {
- "errors": [
- {
- "message": "This operation has been blocked as a potential Cross-Site Request Forgery (CSRF). Please either specify a 'content-type' header (with a type that is not one of application/x-www-form-urlencoded, multipart/form-data, text/plain) or provide a non-empty value for one of the following headers: x-apollo-operation-name, apollo-require-preflight\n",
- "extensions": {
- "stacktrace": [
- "BadRequestError: This operation has been blocked as a potential Cross-Site Request Forgery (CSRF). Please either specify a 'content-type' header (with a type that is not one of application/x-www-form-urlencoded, multipart/form-data, text/plain) or provide a non-empty value for one of the following headers: x-apollo-operation-name, apollo-require-preflight",
- "",
- " at new GraphQLErrorWithCode (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/internalErrorClasses.js:7:9)",
- " at new BadRequestError (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/internalErrorClasses.js:75:9)",
- " at preventCsrf (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/preventCsrf.js:29:11)",
- " at ApolloServer.executeHTTPGraphQLRequest (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/ApolloServer.js:478:17)",
- " at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
- ],
- "code": "BAD_REQUEST"
- }
- }
- ]
- }
-}
-
-5A70
MAY accept application/x-www-form-urlencoded formatted GET requests
4655
MUST accept application/json and match the content-type47DE
SHOULD accept */* and use application/json for the content-type80D8
SHOULD assume application/json content-type when accept is missing82A3
MUST use utf-8 encoding when respondingBF61
MUST accept utf-8 encoded request78D5
MUST assume utf-8 in request if encoding is unspecified80D8
SHOULD assume application/json content-type when accept is missing
-{
- "statusText": "Method Not Allowed",
- "status": 405,
- "headers": {
- "date": "",
- "content-type": "application/json; charset=utf-8",
- "content-length": "60",
- "connection": "close",
- "allow": "POST, OPTIONS"
- },
- "body": {
- "errors": [
- {
- "message": "Only `POST` requests are allowed."
- }
- ]
- }
-}
-
-5A70
MAY accept application/x-www-form-urlencoded formatted GET requests