File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
WebAPI/LearningHub.Nhs.API Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 3838
3939 app . UseMiddleware < ExceptionMiddleware > ( ) ;
4040
41- app . Use ( async ( context , next ) =>
42- {
43- ////context.Response.Headers.Add("content-security-policy", "object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts allow-popups; base-uri 'self';");
44- context . Response . Headers . Add ( "Referrer-Policy" , "no-referrer" ) ;
45- context . Response . Headers . Add ( "Strict-Transport-Security" , "max-age=31536000; includeSubDomains" ) ;
46- context . Response . Headers . Add ( "X-Content-Type-Options" , "nosniff" ) ;
47- context . Response . Headers . Add ( "X-Frame-Options" , "SAMEORIGIN" ) ;
48- context . Response . Headers . Add ( "X-XSS-protection" , "0" ) ;
49- await next ( ) ;
50- } ) ;
41+ //// app.Use(async (context, next) =>
42+ //// {
43+ //// ////context.Response.Headers.Add("content-security-policy", "object-src 'none'; frame-ancestors 'none'; sandbox allow-forms allow-same-origin allow-scripts allow-popups; base-uri 'self';");
44+ //// context.Response.Headers.Add("Referrer-Policy", "no-referrer");
45+ //// context.Response.Headers.Add("Strict-Transport-Security", "max-age=31536000; includeSubDomains");
46+ //// context.Response.Headers.Add("X-Content-Type-Options", "nosniff");
47+ //// context.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN");
48+ //// context.Response.Headers.Add("X-XSS-protection", "0");
49+ //// await next();
50+ //// });
5151
5252 app . UseEndpoints ( endpoints => endpoints . MapControllerRoute ( "default" , "{controller=Home}/{action=Index}/{id?}" ) ) ;
5353
You can’t perform that action at this time.
0 commit comments