If you try to apply an edit in this esri sample:
https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=editing-applye...
Observe the network request, it returns a 502 code.
Here is an example fetch request that should work:
fetch("https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/IncidentsReport/FeatureServer/0/applyEdits", {"credentials":"omit","headers":{"content-type":"application/x-www-form-urlencoded"},"referrer":"https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=editing-applyedits","referrerPolicy":"no-referrer-when-downgrade","body":"f=json&deletes=42558","method":"POST","mode":"cors"});
It returns a 502 error for some reason.
What am I doing wrong? Or is this a bug?