Skip to content

Commit 6e423ac

Browse files
Adds support for CORS for POST requests in CrudApiPlugin (#1197)
1 parent c81eed7 commit 6e423ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-proxy-plugins/Mocks/CrudApiPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private void AddCORSHeaders(Request request, List<HttpHeader> headers)
221221
if (_configuration.EntraAuthConfig is not null ||
222222
_configuration.Actions.Any(a => a.Auth == CrudApiAuthType.Entra))
223223
{
224-
headers.Add(new HttpHeader("access-control-allow-headers", "authorization"));
224+
headers.Add(new HttpHeader("access-control-allow-headers", "authorization, content-type"));
225225
}
226226

227227
var methods = string.Join(", ", _configuration.Actions

0 commit comments

Comments
 (0)