Haha yeah it gave me enough info to where to look.
It was essentialy this.
var postcount = parseInt("1,000", 10) + 1; which results in 2 instead of 1001 😆
While loafing into iframe, getting this error. It may be an issue if it stops working completely as this header directive is already obsolete.
According MDN documents, ALLOW-FROM uri is no more a part of X-Frame-Options header.
Also, In latest version of NodeBB, it is getting used and throwing error. We tried multiple patches/subversions of version 12 and 13. But no luck.
Please share if we have any solution or workaround for the same.
You need to set
allow-from-uri to empty string so it uses
'X-Frame-Options': meta.config['allow-from-uri'] ? 'ALLOW-FROM ' + encodeURI(meta.config['allow-from-uri']) : 'SAMEORIGIN',
We will have to update the code since ALLOW-FROM seems to be deprecated.
@baris Thanks for adding this to the improvement list.
Please let me know if there is any update on the same.