浏览代码

* Call CheckSession before handling request, but after handling CORS

Michaël Van Canneyt 3 年之前
父节点
当前提交
76aa9b1f8b
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;