客户端和服务器在本地主机上,是的,我得到:Cross origin requests are only supported for protocol schemes
client and server are on localhost and yest I get: Cross origin requests are only supported for protocol schemes
我在现有的服务器端项目中编写了一个客户端。
我 运行 都在本地主机上
我怎么会收到 Cross origin requests are only supported for protocol schemes
错误?
服务器:
localhost:8880/SupporTool/Push/SelectMessagesAttributes.
客户:
http://localhost:63342/SupporTool/SupporTool_main/webapp/html/angular2/index.html?_ijt=5qo5v38f4p20oac99ca4jcgdi0
不同的端口已被视为不同的域。您在同一端口上提供服务,或者将服务器配置为发送 CORS headers 用于客户端请求。
我在现有的服务器端项目中编写了一个客户端。
我 运行 都在本地主机上
我怎么会收到 Cross origin requests are only supported for protocol schemes
错误?
服务器:
localhost:8880/SupporTool/Push/SelectMessagesAttributes.
客户:
http://localhost:63342/SupporTool/SupporTool_main/webapp/html/angular2/index.html?_ijt=5qo5v38f4p20oac99ca4jcgdi0
不同的端口已被视为不同的域。您在同一端口上提供服务,或者将服务器配置为发送 CORS headers 用于客户端请求。