Răsfoiți Sursa

* Call CheckSession before handling request, but after handling CORS

Michaël Van Canneyt 3 ani în urmă
părinte
comite
76aa9b1f8b
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      packages/fcl-web/src/jsonrpc/webjsonrpc.pp

+ 1 - 0
packages/fcl-web/src/jsonrpc/webjsonrpc.pp

@@ -360,6 +360,7 @@ begin
   Inherited HandleRequest(aRequest,aResponse);
   if CORS.HandleRequest(aRequest,aResponse,[hcDetect,hcSend]) then
     exit;
+  CheckSession(ARequest);
   If (Dispatcher=Nil) then
     Dispatcher:=CreateDispatcher;
   Disp:=Dispatcher;