|
1 | 1 | export const cors = {
|
2 |
| - "responses": { |
3 |
| - "200": { |
4 |
| - "description": "200 response", |
5 |
| - "headers": { |
6 |
| - "Access-Control-Allow-Origin": { |
7 |
| - "type": "string" |
| 2 | + 'responses': { |
| 3 | + '200': { |
| 4 | + 'description': '200 response', |
| 5 | + 'headers': { |
| 6 | + 'Access-Control-Allow-Origin': { |
| 7 | + 'type': 'string' |
8 | 8 | },
|
9 |
| - "Access-Control-Allow-Methods": { |
10 |
| - "type": "string" |
| 9 | + 'Access-Control-Allow-Methods': { |
| 10 | + 'type': 'string' |
11 | 11 | },
|
12 |
| - "Access-Control-Allow-Headers": { |
13 |
| - "type": "string" |
| 12 | + 'Access-Control-Allow-Headers': { |
| 13 | + 'type': 'string' |
14 | 14 | }
|
15 | 15 | }
|
16 | 16 | }
|
17 | 17 | },
|
18 |
| - "x-amazon-apigateway-integration": { |
19 |
| - "responses": { |
20 |
| - "default": { |
21 |
| - "statusCode": "200", |
22 |
| - "responseParameters": { |
23 |
| - "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", |
24 |
| - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'", |
25 |
| - "method.response.header.Access-Control-Allow-Origin": "'*'" |
| 18 | + 'x-amazon-apigateway-integration': { |
| 19 | + 'responses': { |
| 20 | + 'default': { |
| 21 | + 'statusCode': '200', |
| 22 | + 'responseParameters': { |
| 23 | + 'method.response.header.Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", |
| 24 | + 'method.response.header.Access-Control-Allow-Headers': "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'", |
| 25 | + 'method.response.header.Access-Control-Allow-Origin': "'*'" |
26 | 26 | }
|
27 | 27 | }
|
28 | 28 | },
|
29 |
| - "requestTemplates": { |
30 |
| - "application/json": "{\"statusCode\": 200}" |
| 29 | + 'requestTemplates': { |
| 30 | + 'application/json': '{"statusCode": 200}' |
31 | 31 | },
|
32 |
| - "passthroughBehavior": "when_no_match", |
33 |
| - "type": "mock" |
| 32 | + 'passthroughBehavior': 'when_no_match', |
| 33 | + 'type': 'mock' |
34 | 34 | }
|
35 | 35 | }
|
0 commit comments