File tree Expand file tree Collapse file tree 5 files changed +28
-4
lines changed Expand file tree Collapse file tree 5 files changed +28
-4
lines changed Original file line number Diff line number Diff line change
1
+ /src /.vs
2
+ /src /API.Library /bin
3
+ /src /API.Library /obj
4
+ /test /.vs
5
+ /test /API.Test /bin
6
+ /test /API.Test /obj
7
+ /test /API.Test /Logs
8
+ /test /API.Test /API.Test.csproj.user
Original file line number Diff line number Diff line change 26
26
</rules>
27
27
-->
28
28
<outboundRules >
29
+ <rule name =" Hide Server Header" >
30
+ <match serverVariable =" RESPONSE_Server" pattern =" .+" />
31
+ <action type =" Rewrite" value =" n/a" />
32
+ </rule >
29
33
<!-- Private CORS - Default -->
30
34
<rule name =" Access-Control-Allow-Origin" enabled =" true" patternSyntax =" Wildcard" >
31
35
<match serverVariable =" RESPONSE_Access-Control-Allow-Origin" pattern =" *" />
290
294
</appender >
291
295
</log4net >
292
296
293
- </configuration >
297
+ </configuration >
Original file line number Diff line number Diff line change 26
26
</rules>
27
27
-->
28
28
<outboundRules >
29
+ <rule name =" Hide Server Header" >
30
+ <match serverVariable =" RESPONSE_Server" pattern =" .+" />
31
+ <action type =" Rewrite" value =" n/a" />
32
+ </rule >
29
33
<!-- Private CORS - Default -->
30
34
<rule name =" Access-Control-Allow-Origin" enabled =" true" patternSyntax =" Wildcard" >
31
35
<match serverVariable =" RESPONSE_Access-Control-Allow-Origin" pattern =" *" />
278
282
</appender >
279
283
</log4net >
280
284
281
- </configuration >
285
+ </configuration >
Original file line number Diff line number Diff line change 26
26
</rules>
27
27
-->
28
28
<outboundRules >
29
+ <rule name =" Hide Server Header" >
30
+ <match serverVariable =" RESPONSE_Server" pattern =" .+" />
31
+ <action type =" Rewrite" value =" n/a" />
32
+ </rule >
29
33
<!-- Private CORS - Default -->
30
34
<rule name =" Access-Control-Allow-Origin" enabled =" true" patternSyntax =" Wildcard" >
31
35
<match serverVariable =" RESPONSE_Access-Control-Allow-Origin" pattern =" *" />
290
294
</appender >
291
295
</log4net >
292
296
293
- </configuration >
297
+ </configuration >
Original file line number Diff line number Diff line change 27
27
<system .web>
28
28
<compilation debug =" true" targetFramework =" 4.7.2" />
29
29
<!-- executionTimeout (Seconds), maxRequestLength (KB) must match maxAllowedContentLength (B) -->
30
- <httpRuntime targetFramework =" 4.7.2" executionTimeout =" 600" maxRequestLength =" 131072" />
30
+ <httpRuntime targetFramework =" 4.7.2" executionTimeout =" 600" maxRequestLength =" 131072" enableVersionHeader = " false " />
31
31
</system .web>
32
32
33
33
<system .webServer>
66
66
67
67
<rewrite >
68
68
<outboundRules >
69
+ <rule name =" Hide Server Header" >
70
+ <match serverVariable =" RESPONSE_Server" pattern =" .+" />
71
+ <action type =" Rewrite" value =" n/a" />
72
+ </rule >
69
73
<!-- Private CORS - Default -->
70
74
<rule name =" Access-Control-Allow-Origin" enabled =" true" patternSyntax =" Wildcard" >
71
75
<match serverVariable =" RESPONSE_Access-Control-Allow-Origin" pattern =" *" />
You can’t perform that action at this time.
0 commit comments