mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
XSRF protection
This commit is contained in:
@@ -47,6 +47,7 @@ function sendToPhone(title, url, selection) {
|
||||
var sendUrl = baseUrl + '?title=' + encodeURIComponent(title) +
|
||||
'&url=' + encodeURIComponent(url) + '&sel=' + encodeURIComponent(selection);
|
||||
req.open('GET', sendUrl, true);
|
||||
req.setRequestHeader('X-Extension', 'true'); // XSRF protector
|
||||
|
||||
req.onreadystatechange = function() {
|
||||
if (this.readyState == 4) {
|
||||
|
||||
Reference in New Issue
Block a user