For anybody having issues with CORS config on their IIS arcgis web adaptor, here's what I added to the web.config under wwwroot\arcgis-
I added the following under the <system.webServer> section-
<httpProtocol>
<customHeaders>
<!--<add name="Access-Control-Allow-Origin" value="*" />-->
<add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" />
<add name="Access-Control-Allow-Headers" value="Content-Type" />
</customHeaders>
</httpProtocol>
The request header for Access-Control-Allow-Origin was already defined someplace, I could not figure out where, so that part I left commented out. Only needed everything below that.
http://[yourmachine]/DotNet/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.