Home  >  Q&A  >  body text

html5 - WebSocket跨域

PHPzPHPz2718 days ago553

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:38:10

    Is there any spanning problem with websocket? Probably not, it’s probably a backend server problem

    reply
    0
  • 迷茫

    迷茫2017-04-17 14:38:10

    WEBSOCKET definitely has cross-domain issues. If cross-domain is required, settings must be made on both the server and client web pages. Cross-domain access must be allowed in the server code, and CSP must be set on the client web page. In this way, cross-domain issues can be dealt with. Please see the link description for related content

    reply
    0
  • Cancelreply