WebSockets
-
WebSockets vs Long PollingWeb/Protocol 2020. 2. 23. 22:21
1. Overview Sometimes we need information from our servers as soon as it’s available. The usual AJAX request/response we’re all used to doesn’t keep the connection open for this sort of use case. Instead, we need a push-based method like WebSockets, Long Polling, Server-sent events (SSE) and more recently HTTP2 push. In this article, we compare two methods: WebSockets and Long Polling. 2. Long P..
-
Same-origin Security PolicyWeb/Security 2019. 8. 30. 11:27
1. Overview An origin defined as a combination of URI scheme, hostname, and port number should be the same between two pages interact data with scripts. This policy prevents a malicious script on one page from obtaining access to sensitive data on another web page through that page's Document Object Model(DOM). 2. Description 2.1 Examples Compared URL Outcome Reason http://www.example.com/dir/pa..