diff --git a/dispatcharr/settings.py b/dispatcharr/settings.py index bb4a7f4e..3d2b90b0 100644 --- a/dispatcharr/settings.py +++ b/dispatcharr/settings.py @@ -140,7 +140,10 @@ SERVER_IP = "127.0.0.1" CORS_ALLOW_ALL_ORIGINS = True CORS_ALLOW_CREDENTIALS = True -CSRF_TRUSTED_ORIGINS = ['*'] +CSRF_TRUSTED_ORIGINS = [ + 'http://*', + 'https://*' +] APPEND_SLASH = True REST_FRAMEWORK = { diff --git a/dispatcharr/urls.py b/dispatcharr/urls.py index 4aa72aa6..3a3b3672 100644 --- a/dispatcharr/urls.py +++ b/dispatcharr/urls.py @@ -24,14 +24,14 @@ schema_view = get_schema_view( urlpatterns = [ # API Routes path('api/', include(('apps.api.urls', 'api'), namespace='api')), - path('output/', include('apps.output.urls', namespace='output')), + path('api', RedirectView.as_view(url='/api/', permanent=True)), # Admin path('admin', RedirectView.as_view(url='/admin/', permanent=True)), # This fixes the issue path('admin/', admin.site.urls), # Outputs - path('output', RedirectView.as_view(url='/output/', permanent=True)), # This fixes the issue + path('output', RedirectView.as_view(url='/output/', permanent=True)), path('output/', include(('apps.output.urls', 'output'), namespace='output')), # HDHR