TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The problems and some security implications of websockets

42 pointsby subudeepakabout 11 years ago

2 comments

leeoniyaabout 11 years ago
&quot;WebSockets is a nightmare because it does not come under the Same-origin policy.&quot;<p>yes, i discovered this myself about a week ago.<p>i was surprised that i was able to connect to a localhost websocket when using an internal app on another domain. i expected this to fail and require CORS like XMLHttpRequest. after rejoicing briefly that i didnt need to whitelist it and was saving 2min, i was pretty terrified.
评论 #7637185 未加载
评论 #7637096 未加载
ENGNRabout 11 years ago
Can&#x27;t a malicious script scan the DOM and send sensitive info via an image GET request anyway?
评论 #7637291 未加载