Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

跨域无法正常运转 #5

@zzyyzz1992

Description

@zzyyzz1992

点击注册按钮输入邮箱无反应,12302端口为code-push-server端口,12303为code-push-web端口
//真实ip隐藏掉了
Console显示:
Fetch API cannot load http://我的ip:12302/users/exists?email=18035177869@163.com. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://我的ip:12303' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

网上查询到关闭网络安全的命令(Windows):
chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
关闭后可以正常访问。
还请大神解答,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions