Dinesh
Dinesh

Reputation: 4559

Is there a way to do --disable-web-security on android chrome

I'm developing a mobile web app where the content server is remote. I can do some basic testing on desktop Chrome with --disable-web-security option.

Is there a similar feature available on chrome on android? Or, any other browser on android?

UPDATE

I'm including these headers, Authorization, Access-Control-Allow-Origin, Access-Control-Allow-Credentials; but it seems to have no impact on the data server.

Am I missing any other settings?

The web app code resides on a local PC. Data on the remote hosts and the browser is on mobile in local LAN.

Upvotes: 32

Views: 13709

Answers (1)

AmerllicA
AmerllicA

Reputation: 32572

Actually, there is a way but it is a little hard, first, you should install adb on your system (Linux, Windows, macOS and etc) then restart adb server and at last plugin your Android device. check the adb connection with below command on your terminal/cmd:

$ adb list

When you see your device on the result of the above command, it is time to run the main command:

$ adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main

If the above command opens a Google Chrome tab or window, its time to disable security by your command order

Upvotes: 1

Related Questions