Initial loading of metadata fails due to “501 (Not Implemented)”

后端 未结 2 957
刺人心
刺人心 2020-12-18 10:52

I am trying to consume Northwind R/W OData service link:

http://services.odata.org/V3/(S(frik5l2zde0sxh4jiifyhqo4))/OData/OData.svc/ as

proxy/http/s         


        
2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 11:23

    As you're using Northwind, I believe it's only for development. So you can make use of https://cors-anywhere.herokuapp.com/ to access cross origin resources.

    var oModel = new ODataModel({ // required from "sap/ui/model/odata/v2/ODataModel"
      serviceUrl: "https://cors-anywhere.herokuapp.com/https://services.odata.org/V2/(S(frik5l2zde0sxh4jiifyhqo4))/OData/OData.svc/"
    });
    

    Or the other way would be to disable security flag in chrome for development make use of destination settings within SCP.

提交回复
热议问题