View Complete Thread
  • Re: $metadata 404 (Not Found) when hosting SAPUI5 app that connects to WCF data service

    Apr 07, 2017 11:04 PM|jaldinger|LINK

    Hello Hitman47:

    I have exactly the same problem. I have developed an OData service in IIS and try to use it with UI5. While testing the UI, I get a 404 error when UI5 tries to load the .../$metadata document. Yet if I copy and paste the metadata URL into the browser, it works perfectly.

    Seems to me that IIS is blocking the $metadata request if a "Referer" is present in the HTTP header, even though everything is running on the same server and site.

    The specific error subcode I am getting is 404.0 by the way.

    Have you found a solution to your problem?