forked from syncfusion/ej2-aspnetcore-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.config
66 lines (66 loc) · 2.84 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!--
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
-->
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824"></requestLimits>
<fileExtensions allowUnlisted="true">
<remove fileExtension="." />
<remove fileExtension=".cs" />
<add fileExtension="." allowed="true" />
<add fileExtension=".cs" allowed="true" />
</fileExtensions>
</requestFiltering>
</security>
<!--<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>-->
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" hostingModel="inprocess" />
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<rewrite>
<rules>
<!-- DocIO Redirection -->
<rule name="DocIO to Word" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{URL}" pattern="/aspnetcore/DocIO/(.*)" />
</conditions>
<action type="Redirect" url="https://ej2.syncfusion.com/aspnetcore/Word/{C:1}" />
</rule>
<!-- XlsIO Redirection -->
<rule name="XlsIO to Excel" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{URL}" pattern="/aspnetcore/XlsIO/(.*)" />
</conditions>
<action type="Redirect" url="https://ej2.syncfusion.com/aspnetcore/Excel/{C:1}" />
</rule>
<!-- Presentation Redirection -->
<rule name="Presentation to PowerPoint" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{URL}" pattern="/aspnetcore/Presentation/(.*)" />
</conditions>
<action type="Redirect" url="https://ej2.syncfusion.com/aspnetcore/PowerPoint/{C:1}" />
</rule>
</rules>
</rewrite>
<!-- Configure the "Access-Control-Allow-Origin" HTTP header to a more restrictive set of domains -->
<!-- Configure the "X-Frame-Options" HTTP header response to protect against 'ClickJacking' attacks -->
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>
</system.webServer>
<!-- Implemented custom error pages -->
<system.web>
<customErrors mode="On" />
</system.web>
</configuration>