Ionic Native Http File:// Protocol

I am trying to get a local JSON file in my ionic application. First, I have to download the file form a remote server. Which I did here and store them in this format

this.file.externalDataDirectory + "assets/"+ (index + 1)  +".json";

I want to make a local request using the ionic native HTTP plugin, But I am getting an “Unexpected protocol: file” error.

Why aren’t you using ordinary Angular HttpClient?

I am facing CORS issues If I use to request from local files

Are you using cordova-plugin-ionic-webview? If not, can you? It has a convertFileSrc method that may help you.