Skip to content

Commit

Permalink
Merge pull request #330 from GuilhermeDischer/dev
Browse files Browse the repository at this point in the history
Retornar StatusCode 200 em Requisições Options no GetToken
  • Loading branch information
mobius1qwe committed Apr 24, 2023
2 parents 931d860 + 1874dce commit c2d9e5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CORE/Source/Basic/uRESTDWBasic.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2913,6 +2913,13 @@ procedure TRESTClientPoolerBase.SetIpVersion(IpV: TRESTDWClientIpVersions);
TServerMethodDatamodule(vTempServerMethods).OnGetToken(vWelcomeMessage, vAccessTag, DWParams,
TRESTDWAuthToken(vAuthTokenParam),
vErrorCode, vErrorMessage, vToken, vAcceptAuth);

If (CORS) And (RequestType = rtOption) Then
Begin
vErrorCode := 200;
vErrorMessage := '';
End;

If Not vAcceptAuth Then
Begin
WriteError;
Expand Down

0 comments on commit c2d9e5b

Please sign in to comment.