laptop and a wrench

漏洞

Query parameters are not added to the body when sending a POST using esriRequest.

上次发布: June 12, 2019 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000118647
已提交December 6, 2018
上次修改时间April 2, 2025
适用范围ArcGIS API for JavaScript
找到的版本4.10
操作系统Windows OS
操作系统版本N/A
状态Will Not Be Addressed

附加信息

This is how the API is designed to work.

解决办法

Use another HTTP request interface like the Fetch API(https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).The following code works:fetch(proxy + portalUrl + '/sharing/rest/content/features/generate', {     method: 'post',     body: formdata}).then(function(response){     return response.json();}).then(function(response){     if(!response){        if(response.error){            errorHandler(response.error);            return;        }     }     console.log(response);});

重现步骤

漏洞 ID: BUG-000118647

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项