Forráskód Böngészése

* Call CheckSession before handling request, but after handling CORS

Michaël Van Canneyt 3 éve
szülő
commit
76aa9b1f8b
1 módosított fájl, 1 hozzáadás és 0 törlés
  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;