From 22d33dc8c925293dccfdfc0a0d6517cd5d3f0b5c Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 10 Apr 2021 22:29:18 +0900 Subject: New option cross_origin_referer to use origin only Referer --- rc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.c') 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, -- cgit v1.2.3