|
4 | 4 |
|
5 | 5 | <ul> |
6 | 6 | <li><b>37</b> audits in total</li> |
7 | | -<li><span style="font-family: monospace">✅</span> <b>30</b> pass</li> |
8 | | -<li><span style="font-family: monospace">⚠️</span> <b>7</b> warnings (optional)</li> |
| 7 | +<li><span style="font-family: monospace">✅</span> <b>31</b> pass</li> |
| 8 | +<li><span style="font-family: monospace">⚠️</span> <b>6</b> warnings (optional)</li> |
9 | 9 | </ul> |
10 | 10 |
|
11 | 11 | <h2>Passing</h2> |
12 | 12 | <ol> |
13 | 13 | <li><code>22EB</code> SHOULD accept application/graphql-response+json and match the content-type</li> |
14 | 14 | <li><code>4655</code> MUST accept application/json and match the content-type</li> |
15 | 15 | <li><code>47DE</code> SHOULD accept */* and use application/json for the content-type</li> |
| 16 | +<li><code>80D8</code> SHOULD assume application/json content-type when accept is missing</li> |
16 | 17 | <li><code>82A3</code> MUST use utf-8 encoding when responding</li> |
17 | 18 | <li><code>BF61</code> MUST accept utf-8 encoded request</li> |
18 | 19 | <li><code>78D5</code> MUST assume utf-8 in request if encoding is unspecified</li> |
|
45 | 46 | <h2>Warnings</h2> |
46 | 47 | The server <i>SHOULD</i> support these, but is not required. |
47 | 48 | <ol> |
48 | | -<li><code>80D8</code> SHOULD assume application/json content-type when accept is missing |
49 | | -<details> |
50 | | -<summary>Response status code is not 200</summary> |
51 | | -<pre><code class="lang-json">{ |
52 | | - "statusText": "Bad Request", |
53 | | - "status": 400, |
54 | | - "headers": { |
55 | | - "x-powered-by": "Express", |
56 | | - "etag": "W/\"5b5-gDRXf8j0lbjWbmQpeY60iENT2cI\"", |
57 | | - "date": "<timestamp>", |
58 | | - "content-type": "application/json; charset=utf-8", |
59 | | - "content-length": "1461", |
60 | | - "connection": "close", |
61 | | - "access-control-allow-origin": "*" |
62 | | - }, |
63 | | - "body": { |
64 | | - "errors": [ |
65 | | - { |
66 | | - "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", |
67 | | - "extensions": { |
68 | | - "stacktrace": [ |
69 | | - "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", |
70 | | - "", |
71 | | - " at new GraphQLErrorWithCode (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/internalErrorClasses.js:7:9)", |
72 | | - " at new BadRequestError (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/internalErrorClasses.js:75:9)", |
73 | | - " at preventCsrf (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/preventCsrf.js:29:11)", |
74 | | - " at ApolloServer.executeHTTPGraphQLRequest (file:///home/runner/work/graphql-http/graphql-http/node_modules/@apollo/server/dist/esm/ApolloServer.js:478:17)", |
75 | | - " at process.processTicksAndRejections (node:internal/process/task_queues:95:5)" |
76 | | - ], |
77 | | - "code": "BAD_REQUEST" |
78 | | - } |
79 | | - } |
80 | | - ] |
81 | | - } |
82 | | -} |
83 | | -</code></pre> |
84 | | -</details> |
85 | | -</li> |
86 | 49 | <li><code>5A70</code> MAY accept application/x-www-form-urlencoded formatted GET requests |
87 | 50 | <details> |
88 | 51 | <summary>Response status code is not 200</summary> |
|
0 commit comments