Skip to content

Commit

Permalink
Merge pull request #48 from gdamjan/master
Browse files Browse the repository at this point in the history
Origin instead of Host
  • Loading branch information
evancz authored Nov 18, 2018
2 parents a84419d + 1037457 commit 615275c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http.elm
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ This is called [`withCredentials`][wc] in JavaScript, and it allows a couple
other risky things as well. It can be useful if `www.example.com` needs to
talk to `uploads.example.com`, but it should be used very carefully!
For example, every HTTP request includes a `Host` header revealing the domain,
For example, every HTTP request includes a `Origin` header revealing the domain,
so any request to `facebook.com` reveals the website that sent it. From there,
cookies can be used to correlate browsing habits with specific users. “Oh, it
looks like they visited `example.com`. Maybe they want ads about examples!”
Expand Down

0 comments on commit 615275c

Please sign in to comment.