By default, swagger-typescript-api forces the browser to send a CORS pre-flight request even for GET requests. This is because the Content-Type is set even for GET requests, which would otherwise be considered a "simple" request, thereby avoiding the CORS pre-flight.
Since GET requests do not contain a request body, the Content-Type is always ignored. It should be ignored for GET requests so that the CORS preflight can be avoided.
By default, swagger-typescript-api forces the browser to send a CORS pre-flight request even for GET requests. This is because the Content-Type is set even for GET requests, which would otherwise be considered a "simple" request, thereby avoiding the CORS pre-flight.
Since GET requests do not contain a request body, the Content-Type is always ignored. It should be ignored for GET requests so that the CORS preflight can be avoided.