When I published and API to AWS with Visual Studio I was getting a 403 error in the response when I called Get methods that contain a Body and according to the answer of @James Dean here: Are Get request with body allowed on AWS? 403 error from CloudFront the error is caused by cloudfront.
the error I received was the following:
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The request could not be satisfied</TITLE>
</HEAD>
<BODY>
<H1>403 ERROR</H1>
<H2>The request could not be satisfied.</H2>
<HR noshade size="1px">
Bad request.
<BR clear="all">
<HR noshade size="1px">
<PRE>
Generated by cloudfront (CloudFront)
Request ID:
</PRE>
<ADDRESS></ADDRESS>
</BODY>
</HTML>
so I researched that there are several types of API Gateway: Edge Optimized, Regional API Gateways and Private API Gateways. the regional API Gateway does not come with an implementation of cloudfront, so my questions are.
- what would happen if I use regional API gateway without cloudfront?
- would that allow me to make get Request with body?
- is it possible to have API Gateway without cloudfront configured and what are the consequences of this?
Many Thanks