aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-04-10 13:29:18 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-04-10 13:29:18 +0000
commit22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c (patch)
treef8fffbefb80abdade831b9314501f44181551357 /rc.c
parentDon't include username in Referer (diff)
downloadw3m-22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c.tar.gz
w3m-22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c.zip
New option cross_origin_referer to use origin only Referer
Diffstat (limited to '')
-rw-r--r--rc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.c b/rc.c
index c238e3e..c93dcd6 100644
--- a/rc.c
+++ b/rc.c
@@ -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,