-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathweb.config
43 lines (42 loc) · 1.75 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Web Components Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/webcomponents-demos/" />
</rule>
<rule name="React Root Redirect" enabled="true" stopProcessing="true">
<match url="^/?$" />
<action type="Redirect" url="/products/ignite-ui-webcomponents/getting-started" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<staticContent>
<remove fileExtension=".json" />
<remove fileExtension=".csv" />
<remove fileExtension=".shp" />
<remove fileExtension=".dbf" />
<remove fileExtension=".itf" />
<remove fileExtension=".svg" />
<remove fileExtension=".xml" />
<mimeMap fileExtension=".xml" mimeType="application/xml;charset=UTF-8" />
<mimeMap fileExtension=".json" mimeType="application/json;charset=UTF-8;" />
<mimeMap fileExtension=".csv" mimeType="application/csv;charset=UTF-8;" />
<mimeMap fileExtension=".shp" mimeType="application/octet-stream" />
<mimeMap fileExtension=".dbf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".itf" mimeType="application/octet-stream" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>
<httpProtocol>
<customHeaders>
<add name="X-XSS-Protection" value="0" /> <!-- disable X-XSS-Protection -->
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>