我使用Auth0进行用户身份验证,只允许登录的用户访问Spring (Boot) RestController。此时,我正在创建一个实时消息功能,用户可以在其中使用stompjs和sockjs将消息从Angular 2客户机(localhost:4200)发送到Spring服务器(本地主机:8081)。在尝试创建Stomp-client并启动连接时,我收到以下控制台错误:
The value of the 'Access-Control-Allow-Origin' header in the responset=149