monero-pool icon indicating copy to clipboard operation
monero-pool copied to clipboard

make the web ui more to chrome's liking

Open moneromooo-monero opened this issue 3 years ago • 2 comments

chrome does not like setting innerHTML, because it might be vulnerable to injection, but since we don't add user controlled data, we're fine

require-trusted-types-for 'script'; trusted-types default; needs adding to Content-Security-Policty, see:

https://stackoverflow.com/questions/62810553

moneromooo-monero avatar Mar 18 '21 22:03 moneromooo-monero

Interesting. Pretty sure this will need to be a child of <head> (not <html>), to pass validation though.

jtgrassie avatar Mar 19 '21 01:03 jtgrassie

Confirmed to work after the move.

moneromooo-monero avatar Mar 19 '21 17:03 moneromooo-monero