diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 13:29:18 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-04-10 13:29:18 +0000 |
commit | 22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c (patch) | |
tree | f8fffbefb80abdade831b9314501f44181551357 /rc.c | |
parent | Don't include username in Referer (diff) | |
download | w3m-22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c.tar.gz w3m-22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c.zip |
New option cross_origin_referer to use origin only Referer
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -194,6 +194,7 @@ static int OptionEncode = FALSE; #endif /* USE_MOUSE */ #define CMT_CLEAR_BUF N_("Free memory of undisplayed buffers") #define CMT_NOSENDREFERER N_("Suppress `Referer:' header") +#define CMT_CROSSORIGINREFERER N_("Exclude pathname and query string from `Referer:' header when cross domain communication") #define CMT_IGNORE_CASE N_("Search case-insensitively") #define CMT_USE_LESSOPEN N_("Use LESSOPEN") #ifdef USE_SSL @@ -678,6 +679,8 @@ struct param_ptr params9[] = { {"user_agent", P_STRING, PI_TEXT, (void *)&UserAgent, CMT_USERAGENT, NULL}, {"no_referer", P_INT, PI_ONOFF, (void *)&NoSendReferer, CMT_NOSENDREFERER, NULL}, + {"cross_origin_referer", P_INT, PI_ONOFF, (void *)&CrossOriginReferer, + CMT_CROSSORIGINREFERER, NULL}, {"accept_language", P_STRING, PI_TEXT, (void *)&AcceptLang, CMT_ACCEPTLANG, NULL}, {"accept_encoding", P_STRING, PI_TEXT, (void *)&AcceptEncoding, |