@@ -110,6 +110,9 @@ def handler(event, context):
110
110
"statusDescription" : str (error .args [1 ]) + " Server Error" ,
111
111
"headers" : {
112
112
"Content-Type" : "text/html" ,
113
+ "Access-Control-Allow-Origin" : "*" ,
114
+ "Access-Control-Allow-Headers" : "Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with" ,
115
+ "Access-Control-Allow-Methods" : "POST,GET,OPTIONS" ,
113
116
},
114
117
"body" : error .args [0 ],
115
118
}
@@ -136,6 +139,9 @@ def handler(event, context):
136
139
"statusDescription" : "200 OK" ,
137
140
"headers" : {
138
141
"Content-Type" : "application/json" ,
142
+ "Access-Control-Allow-Origin" : "*" ,
143
+ "Access-Control-Allow-Headers" : "Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with" ,
144
+ "Access-Control-Allow-Methods" : "POST,GET,OPTIONS" ,
139
145
},
140
146
"body" : json .dumps (validation_result (config ))
141
147
}
@@ -156,6 +162,8 @@ def handler(event, context):
156
162
"headers" : {
157
163
"Location" : link ,
158
164
"Access-Control-Allow-Origin" : "*" ,
165
+ "Access-Control-Allow-Headers" : "Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with" ,
166
+ "Access-Control-Allow-Methods" : "POST,GET,OPTIONS" ,
159
167
},
160
168
"statusCode" : 302 ,
161
169
"statusDescription" : "302 Found" ,
0 commit comments