Open uniquejava opened 8 years ago
安装: https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
然后在插件中设置需要拦截的URL, 比如: https://gateway.watsonplatform.net/*
https://gateway.watsonplatform.net/*
给chrome browser加上启动参数--args --disable-web-security --user-data-dir解决CORS问题,如下:
--args --disable-web-security --user-data-dir
#!/bin/bash set -e echo starting elasticsearch elasticsearch -d echo done. #todo, kill any existing canary processes. open http://localhost:8888/xxxx -a "/path/to/Chromium.app" --args --disable-web-security --user-data-dir open http://localhost:8100/ -a "/opt/homebrew-cask/Caskroom/google-chrome-canary/latest/Google Chrome Canary.app" --args --disable-web-security --user-data-dir pbcopy < <(echo yinsb@xxxx.com) exit 0
环境: Android 4.4, Chrome 51, MacOS 10.11.5
Discover USB devices
详见: https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging
优雅且高效的使用Chrome Developer Tools
上集: http://lin-chao.github.io/2014/10/10/%E4%BC%98%E9%9B%85%E4%B8%94%E9%AB%98%E6%95%88%E7%9A%84%E4%BD%BF%E7%94%A8Chrome-Developer-Tools%E4%B8%8A/
下集: http://lin-chao.github.io/2014/10/15/%E4%BC%98%E9%9B%85%E4%B8%94%E9%AB%98%E6%95%88%E7%9A%84%E4%BD%BF%E7%94%A8Chrome-Developer-Tools%E4%B8%8B/
在打开CDT的情况下, 按住chrome的刷新按钮不放, 会多出个弹出菜单
How can I make Chrome stop caching redirects?
解决CORS问题
方法1: 安装chrome插件
安装: https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
然后在插件中设置需要拦截的URL, 比如:
https://gateway.watsonplatform.net/*
方法2: 给chrome加上启动参数(不是很好用)
给chrome browser加上启动参数
--args --disable-web-security --user-data-dir
解决CORS问题,如下: