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

书中416页的问卷服务是否存在跨域问题? #10

Open
qxkxzw opened this issue May 14, 2017 · 1 comment
Open

书中416页的问卷服务是否存在跨域问题? #10

qxkxzw opened this issue May 14, 2017 · 1 comment

Comments

@qxkxzw
Copy link

qxkxzw commented May 14, 2017

questionnaire.service.ts中http.post的地址是http://localhost:5000端口,而页面是5555端口,这不是存在同源策略问题?

@loskael
Copy link

loskael commented May 17, 2017

是存在跨域问题,接口支持 CORS 即可
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

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

2 participants