File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,15 @@ export default class HttpServerInterceptor extends Interceptor implements IInter
102102 return ;
103103 }
104104
105- intercept ( this . req && this . req . sn_uid , 'end' ) ;
106- const { req, res } = SessionManager . getSession ( this . req ?. sn_uid ) ;
107- if ( req && res ) {
108- risk ( { event : EventType . RISK , context : { req : contextFromRequest ( req ) , res : contextFromResponse ( res ) } } ) ;
105+ if ( this . req && this . req . method !== 'OPTIONS' ) {
106+ intercept ( this . req . sn_uid , 'end' ) ;
107+ const { req, res } = SessionManager . getSession ( this . req ?. sn_uid ) ;
108+ if ( req && res ) {
109+ risk ( { event : EventType . RISK , context : { req : contextFromRequest ( req ) , res : contextFromResponse ( res ) } } ) ;
110+ }
111+
112+ SessionManager . cleanSession ( this . req . sn_uid ) ;
109113 }
110-
111- SessionManager . cleanSession ( this . req && this . req . sn_uid ) ;
112-
113114 return original . apply ( this , arguments ) ;
114115 } ;
115116 } ) ;
You can’t perform that action at this time.
0 commit comments