]> cat aescling's git repositories - mastodon.git/commit
Allow access to the instance through subdomains of glitch.cat.family
authorsingle-right-quote <34298117+single-right-quote@users.noreply.github.com>
Wed, 1 Sep 2021 00:19:01 +0000 (00:19 +0000)
committersingle-right-quote <34298117+single-right-quote@users.noreply.github.com>
Wed, 1 Sep 2021 00:30:27 +0000 (00:30 +0000)
commitf023a7a672e572894e06383d2addb0f6b6b3ca79
tree4800323e9cc99d880e8c3d670c2fa5d4cdca7c05
parent741681e7e7cfdf3d72f372bd022efe22f63f8952
Allow access to the instance through subdomains of glitch.cat.family

Rails 6 forces you to whitelist what domain names an application
may be accessed from. while it is possible to supply a regular
expression, it is not clear how to do this when mastodon parses the
environment variable you supply the regex from. meanwhile, disabling
whitelisting entirely DOES work

this is theoretically less secure; if we can find a way to supply a
regex, that would be preferable.

--- yr cat
config/initializers/1_hosts.rb