CorentinTh / it-tools

Collection of handy online tools for developers, with great UX.
https://it-tools.tech
GNU General Public License v3.0
22.16k stars 2.69k forks source link

Text Diff module not working when using reverse proxy (with authentik) #1291

Open gitmotion opened 1 month ago

gitmotion commented 1 month ago

Describe the bug

Text Diff module does not load anymore. Noticed it works if I access from the internal ip but not from the reverse proxy. I've also tried adding it directly to npm with a custom location mapped to the assests folder and container but still gives me the same error.

image

What happened?

It should load as it does on the internal ip

System information

Where did you encounter the bug?

Self hosted

Fintanw23 commented 3 weeks ago

Wow exactly my issue and setup! Very annoying as text-diff is 90% of what i use this container for :(

gitmotion commented 3 weeks ago

ah so i'm starting to believe this is a CORS issue, since having an authentication provider like authentik redirects from the authentik URL. got this error this when trying to access my local version vs external version (instead of internal ip) image

@Fintanw23 i'm not sure exactly how but somehow i fixed this lol with the following:

gitmotion commented 1 day ago

looks like the error was happening from dynamically importing the module image

pr: https://github.com/CorentinTh/it-tools/pull/1352