lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Disable CSP when in debug mode.

Open dessalines opened this issue 1 year ago • 4 comments

dessalines avatar Aug 05 '22 14:08 dessalines

Why?

Nutomic avatar Aug 05 '22 14:08 Nutomic

Eruda needs to run a remote script to work, otherwise just setting LEMMY_UI_DEBUG won't work on its own.

dessalines avatar Aug 05 '22 14:08 dessalines

Ah but LEMMY_UI_DEBUG wont be set automatically when you just run yarn start, right? In that case its fine, but the name is confusing. I would change it to LEMMY_UI_ERUDE_DEBUG.

Nutomic avatar Aug 05 '22 17:08 Nutomic

Correct, you still need to set that one env var now. It should pry stay as just LEMMY_UI_DEBUG because I don't know what else I might add besides eruda in the future to help debug.

dessalines avatar Aug 05 '22 18:08 dessalines