@@ -18,27 +18,27 @@ def configure_middlewares(app: FastAPI, settings: Settings) -> None:
1818
1919def configure_sec (app : FastAPI , settings : Settings ) -> None :
2020 app .add_middleware (
21- Secweb .CacheControl .CacheControlMiddleware .CacheControl ,
21+ Secweb .CacheControl .CacheControlMiddleware .CacheControl , # type: ignore
2222 Option = {
2323 "s-maxage" : 3600 ,
2424 "must-revalidate" : True ,
2525 "no-transform" : True ,
2626 },
2727 )
28- app .add_middleware (Secweb .XContentTypeOptions .XContentTypeOptions )
29- app .add_middleware (Secweb .StrictTransportSecurity .HSTS )
30- app .add_middleware (Secweb .OriginAgentCluster .OriginAgentCluster )
28+ app .add_middleware (Secweb .XContentTypeOptions .XContentTypeOptions ) # type: ignore
29+ app .add_middleware (Secweb .StrictTransportSecurity .HSTS ) # type: ignore
30+ app .add_middleware (Secweb .OriginAgentCluster .OriginAgentCluster ) # type: ignore
3131 app .add_middleware (
32- Secweb .XFrameOptions .XFrame ,
32+ Secweb .XFrameOptions .XFrame , # type: ignore
3333 Option = "SAMEORIGIN" ,
3434 )
35- app .add_middleware (Secweb .xXSSProtection .xXSSProtection )
35+ app .add_middleware (Secweb .xXSSProtection .xXSSProtection ) # type: ignore
3636 app .add_middleware (
37- Secweb .ReferrerPolicy .ReferrerPolicy ,
37+ Secweb .ReferrerPolicy .ReferrerPolicy , # type: ignore
3838 Option = ["no-referrer-when-downgrade" ],
3939 )
4040 app .add_middleware (
41- Secweb .ContentSecurityPolicy .ContentSecurityPolicyMiddleware .ContentSecurityPolicy , # noqa
41+ Secweb .ContentSecurityPolicy .ContentSecurityPolicyMiddleware .ContentSecurityPolicy , # type: ignore # noqa
4242 Option = {
4343 "default-src" : ["'self'" ],
4444 "script-src" : [
0 commit comments