-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWeb.config
31 lines (31 loc) · 1.01 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
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.0"/>
</system.web>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".geojson" mimeType="application/json"/>
<mimeMap fileExtension=".gltf" mimeType="model/vnd.gltf+json"/>
</staticContent>
<httpProtocol>
<customHeaders>
<!-- Enable Cross Domain AJAX calls -->
<remove name="Access-Control-Allow-Origin"/>
<add name="Access-Control-Allow-Origin" value="*"/>
</customHeaders>
</httpProtocol>
<rewrite>
<rules>
<rule name="removehtml" stopProcessing="true">
<match url=".*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="{R:0}.htm"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>