-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeb.config
28 lines (28 loc) · 1.1 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
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime maxRequestLength="4096" />
<httpHandlers>
<add type="Upload.UploadHandler, Upload" path="Uploader.ashx" verb="POST" validate="false" />
</httpHandlers>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add type="Upload.UploadHandler, Upload" path="Uploader.ashx" verb="POST" name="UploadHandler" preCondition="integratedMode" />
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="30000000" />
</requestFiltering>
</security>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Headers" value="Origin, X-Requested-Width, Content-Type, Accept" />
<add name="Access-Control-Allow-Methods" value="Get,PUT,POST,DELETE,OPTIONS" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>