Google browser to solve cross-domain ajax problem

With mui and H5 + do mixed-use development, will use HBuildx to-device debugging, can-device debugging there is always the problem, know people will naturally understand, and we directly open only a static page displayed page is not obtain data here I want to say, not the code in use jsonp, such as a reverse proxy to solve cross-domain problem, but we do use common debugging tools Google browser cross-domain ajax to solve the problem.

  1. Find the shortcut icon Google browser, right-click and select Properties,

   2. Open the Properties window, select the Shortcut tab,

   3. Add the path after the target [ --disable -web -security --user -data -dir = C: \ chromedata ], note that there is a space between the --disable chrome.exe

   4. Click Apply, then click OK to close the window. As shown below:

 

Then we open the set up of the browser look, if there is the following display is set up, then you can debug ajax requests. As shown below:

 

 

Note: You need to create a shortcut, because when you set up, all of the plug-in logs are cleared.

Guess you like

Origin www.cnblogs.com/xiaoyeya/p/11871373.html