问题
I have an html page with angular2 on url:
http://localhost:8880/SupporTool/html/angular2/index.html#
which call server on
localhost:8880/SupporTool/Push/SelectMessagesAttributes
how come i get
Cross origin requests are only supported..
回答1:
one has to disable same origin policy in Chrome. It blocks all calls from localhost to itself.
start chrome with the --disable-web-security
flag
来源:https://stackoverflow.com/questions/39019403/client-from-localhost8880-calls-server-from-localhost8880-but-gets-cross-origi