HarmonyOS 鸿蒙Next元服务接口调用问题
HarmonyOS 鸿蒙Next元服务接口调用问题
这个元服务的服务器域名设置后还是无法访问,是不是这功能有缺陷啊。
error: {“message”:"{“code”:2300998,“message”:“It is not allowed to access this domain”}",“name”:“AxiosError”,“stack”:" at AxiosError (oh_modules/.ohpm/@ohos+axios@2.2.2/oh_modules/@ohos/axios/src/main/ets/components/lib/core/AxiosError.js:22:1)\n at anonymous (oh_modules/.ohpm/@ohos+axios@2.2.2/oh_modules/@ohos/axios/src/main/ets/components/lib/adapters/ohos/http.js:57:1)\n",“config”:{“transitional”:{“silentJSONParsing”:true,“forcedJSONParsing”:true,“clarifyTimeoutError”:false},“adapter”:[“ohos”],“transformRequest”:[null],“transformResponse”:[null],“timeout”:0,“xsrfCookieName”:“XSRF-TOKEN”,“xsrfHeaderName”:“X-XSRF-TOKEN”,“maxContentLength”:-1,“maxBodyLength”:-1,“env”:{“Blob”:null},“headers”:{“Accept”:“application/json, text/plain, /”,“Content-Type”:“application/json”},“method”:“post”,“url”:"",“data”:"{“username”:“AAAPVaa9m9TttGASpVz7k4fKFqORU”}"},“code”:2300998,“status”:null}
关于HarmonyOS 鸿蒙Next元服务接口调用问题的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。