{"id":773,"date":"2021-11-15T15:03:07","date_gmt":"2021-11-15T14:03:07","guid":{"rendered":"https:\/\/www.ume.li\/blog\/?p=773"},"modified":"2021-11-15T15:03:20","modified_gmt":"2021-11-15T14:03:20","slug":"cookies-in-the-pack-orient-me-displays-error-messages","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2021\/11\/15\/cookies-in-the-pack-orient-me-displays-error-messages\/","title":{"rendered":"Cookies in the pack &#8211; Orient Me displays error messages"},"content":{"rendered":"<p>In our environment, cookies are used heavily for authentication and sessions. Huge cookies from Keycloak, LtpaTokens, JSESSIONID&#8217;s, sametimeJwt tokens and stuff from other subdomains.<\/p>\n<p>Once the Request Header goes over 8k in size, Orient-Me fails to load suggestions stuff. Or &#8220;Could not load the activity stream. The request timed out&#8221; is a typical message.<\/p>\n<p><strong>Why does it happen?<\/strong> The Component Pack (<=7.0.2) uses a Node.js version where the max header size is set to 8k.\n\n\n<strong>Workaround<\/strong><br \/>\nUntil the Node.js versions in the componetpack have been upgraded I use the following as a workaround.<\/p>\n<p>Inside my ihs config I added this to remove the sametimeJwt cookie from the requests.<\/p>\n<p><code><br \/>\nSetEnvIfNoCase Request_URI \"^\/appreg.*\" noCookie<br \/>\nSetEnvIfNoCase Request_URI \"^\/community_suggestions\/.*\" noCookie<br \/>\nSetEnvIfNoCase Request_URI \"^\/social\/.*\" noCookie<br \/>\nSetEnvIfNoCase Request_URI \"^\/itm\/.*\" noCookie<br \/>\nRequestHeader edit* Cookie \"^(.*?)sametime[jJ][Ww][Tt]=.*?(?:$|;)(.*)$\" $1$2 env=noCookie<br \/>\n<\/code><\/p>\n<p>This will remove the cookie from the proxy request to the componentpack.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our environment, cookies are used heavily for authentication and sessions. Huge cookies from Keycloak, LtpaTokens, JSESSIONID&#8217;s, sametimeJwt tokens and<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,54,23],"tags":[],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-62","category-component-pack","category-connections"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=773"}],"version-history":[{"count":4,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":778,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/773\/revisions\/778"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}