Skip to Content
author's profile photo Former Member
Former Member

XMLHttpRequest cannot load

Hi all iam new to sap ui5

when iam checking output the page goes blank and checked in chrome it shows this errors please help out with me

XMLHttpRequest cannot load file:///C:/Nwds/Epalika/WebContent/epalika/header.view.js. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/Nwds/smp/WebContent/smp/header.view.js'.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 05, 2015 at 12:35 PM

    It looks like you are trying to test your pages with windows explorer. When you are testing the pages you will need to load them with a web server "http://localhost" and all paths of you app should respect this.

    Regards,

    Jamie

    SAP - Technology RIG

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.