Comment on Do I need https on everything

<- View Parent
GreenKnight23@lemmy.world ⁨2⁩ ⁨weeks⁩ ago

it would if it’s importing something else.

let’s say your site is on app.home.com and your js is locally sourced. then that JS was injected with an import from vuln.evil.com.

I’m pretty sure your browser would block it based on the fact that the document domain is using HTTPS and HSTS would block it based on not using HTTPS.

I think. never really tried this out tbh.

original
Sort:hotnewtop