header('X-XSS-Protection: 1');
Always assume that we will aim to resolve most bugs for the next release while practical or at least while it's open there will be an official resolution at some point.@Mike Will we be able to expect a release to address this for our 1.x communities?
Maybe an unofficial patch to give sites the option to detect urls and offer full editor instead for those posts?
Thank you. (edit: Version 58.0.3029.68 beta (64-bit) fixes a few things, but more options still triggers, your 'add this to config' fixed it completely for my site).You can workaround it by adding this to config.php:
Actually, this is potentially another reason why I think this is a Chrome bug. It thinks there is an XSS vector here based on view source, but it's not actually scrubbing anything from the input, so it doesn't break the page. I will have to take this to them to see if there are any further comments -- though it may just lead to them scrubbing this value, which would mean that XSS protection will have to be entirely disabled to workaround this issue.Code:header('X-XSS-Protection: 1');
Thanks for the work around - our members have just spotted this issue too!You can workaround it by adding this to config.php:
Actually, this is potentially another reason why I think this is a Chrome bug. It thinks there is an XSS vector here based on view source, but it's not actually scrubbing anything from the input, so it doesn't break the page. I will have to take this to them to see if there are any further comments -- though it may just lead to them scrubbing this value, which would mean that XSS protection will have to be entirely disabled to workaround this issue.Code:header('X-XSS-Protection: 1');
Thanks Mike. Perhaps I've misunderstood. I thought the default was '1' and that was what was causing the problem, hence my using zero. I'll change it to '1'. Cheers.Note that the code I posted uses the value "1", which I believe is what Chrome was doing without a header up until recently -- at least based on their comments. That will use the XSS protection but try to strip the issue rather than blocking.
Thanks Mike.Chrome's new default is "1; mode=block" (which is why it suddenly broke).
We use essential cookies to make this site work, and optional cookies to enhance your experience.