Connecting to enterprise via the Javascipt SDK
When a request for a feature service is made we see the below error urls change for privacy?
Access to fetch at 'https://examplegis.net/server/rest/services/Hosted/somelayer/FeatureServer?f=json' from origin 'https://example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Adding then below json to update should fix the issue or adding a cors entry in IIS
https://examplegis.net/arcgis/admin/security/config/update
{
"allowedOrigins": [
"https://example.com"
],
"allowOrigins": true
}
My question is
1)when was this requirement introduced ? as this worked 2 weeks ago?
2)Is the expectation we add all domains here?