Skip to content

Commit 8724ca4

Browse files
Adds support for CORS for POST requests in CrudApiPlugin
1 parent 9ad2b48 commit 8724ca4

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
@@ -220,7 +220,7 @@ private void AddCORSHeaders(Request request, List<HttpHeader> headers)
220220

221221
if (_configuration.EntraAuthConfig is not null)
222222
{
223-
headers.Add(new HttpHeader("access-control-allow-headers", "authorization"));
223+
headers.Add(new HttpHeader("access-control-allow-headers", "authorization, content-type"));
224224
}
225225

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

0 commit comments

Comments
 (0)