Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关闭Chrome跨域 #19

Open
ychow opened this issue Apr 1, 2017 · 0 comments
Open

关闭Chrome跨域 #19

ychow opened this issue Apr 1, 2017 · 0 comments

Comments

@ychow
Copy link
Owner

ychow commented Apr 1, 2017

由于在开发阶段,我们可能会产生跨域(跨域的原理,这里就不赘述了。)。虽然jsonp是一种解决手段,其实它只是解决跨域的一种hack,并不推荐。这里只说说如何暂时关闭Chrome的跨域,来方便开发。

  1. 找到Chrome图标,右击,选择属性
  2. Google Chrome属性对话框弹出,切换到快捷方式
  3. 在目标输入框里,添加上 --args --disable-web-security --user-data-dir,记住前面一定要加上空格!
  4. 点击应用----> 确定。
  5. 重启Chrome, 如果在地址栏下出现了一个黄色的Tips。That's OK!
    tips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant