Title not allowed

I want to bring the web application from PhoneGap to the pc browser only because I need to do some tests. Inside WebApp, there is some XMLHttpRequest file that fails because the original header is null.

I already tried to start Chrome with this command:

chromium-browser index.html  --allow-file-access-from-files

I have the same error:

Origin file:// is not allowed by Access-Control-Allow-Origin.

I do not understand why everything works correctly with the Android emulator. Also, telephone delay downloads a local file:

super.loadUrl("file:///android_asset/www/index.html", 1);

More or less, I solved this by adding On for Firefox!

This may be useful for other people:

Firefox Force CORS Add-ons

+3
source share
1 answer

--disable-web-security . , dev.

0

All Articles