Cannot Open Local File pdf in Ionic 2


Sorry i want to ask about my issue, i already run with ionic serve and i try to open local pdf file, it can work properly, but after i try to check in www/ folder especially on index.html, just clicked it once, show in browser, but file is not loaded and show an error like this :

Fetch API cannot load file:///Users/toni/Documents/myApp/www/assets/files/test.pdf. URL scheme must be “http” or “https” for CORS request.

So can you help me to solve this issue ? thanks.

1 possible answer(s) on “Cannot Open Local File pdf in Ionic 2