Giter Site home page Giter Site logo

Comments (4)

gregorwolf avatar gregorwolf commented on May 30, 2024 1

I've just commented on the issue OData/ODataSamples#29 and perhaps we get http://service.odata.org fixed.

from openui5.

qmacro avatar qmacro commented on May 30, 2024

I might be wrong, but I'm guessing this is the OPTIONS method being sent by the browser in the case of a cross-domain access request, and it's Northwind's (valid) response saying it doesn't support that method. If you run via a proxy or with relaxed browser security restrictions (for example), this won't occur - see http://jsbin.com/wevac/6/edit for example.

from openui5.

matz3 avatar matz3 commented on May 30, 2024

Like @qmacro already said, the problem is that the Northwind Service doesn't seem to support Cross-Domain Requests.
You should use a proxy to handle this, but if you have access to the service (so if you run an own for your app) you should enable CORS there and it should work fine.

An example using cors-anywhere: http://jsbin.com/qozusiwu/1/edit

from openui5.

rohitraja avatar rohitraja commented on May 30, 2024

Correct , use this URL to add proxy over it.

var oModel = new sap.ui.model.odata.ODataModel("proxy/http/services.odata.org/Northwind/Northwind.svc");

from openui5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.