Skip to content

Commit

Permalink
By default CORS middleware allows PATCH method too.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Dec 30, 2024
1 parent 4066123 commit fa8f4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/MVCFramework.Middleware.CORS.pas
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ TMVCCORSDefaults = class sealed
/// The Access-Control-Allow-Methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.
/// Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods
/// </summary>
ALLOWS_METHODS = 'POST,GET,OPTIONS,PUT,DELETE';
ALLOWS_METHODS = 'POST,GET,OPTIONS,PUT,DELETE,PATCH';
/// <summary>
/// Indicates the number of seconds (60 by default) the information provided by
/// the `Access-Control-Allow-Methods` and `Access-Control-Allow-Headers` headers can be cached.
Expand Down

0 comments on commit fa8f4a7

Please sign in to comment.