XMLHttpRequest cannot load

hello I want to get json file from API was I create before. But when I want to call I have some problem like this

and my code like this

so my data from hotel.json not read on apps. Can someone help me?

set up either a proxy (it’s in the docs), setup CORS on the server if possible, or use a browser plugin. Don’t forget to add the whitelist plugin

sorry where the docs can I found? on http://ionicframework.com/docs/v2 ? I has search but not found how to set up proxy

I cant find it in the v2 docs, it’s in the v1 docs tho

http://ionicframework.com/docs/cli/test.html

you define it in your ionic.project file.

sorry still not working for me…

I think this don’t Ionic2 side trouble.
You should setting server setting.

for example ( PHP framework ‘CodeIgniter’)

    header('Access-Control-Allow-Origin: *');
    header('Access-Control-Allow-Methods: GET, POST, OPTIONS');
    header("Access-Control-Allow-Headers: X-AMZ-META-TOKEN-ID, X-AMZ-META-TOKEN-SECRET");
    if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
        exit;
    }

It’s measure of CORS.

Regards.