Reland "DEV: Add checks that assets do not modify cookies to smoke-test.js" (PR #9774)

Reverts discourse/discourse#9773

GitHub