Skip to content

Default middleware not applied in auto-deployment

We had an issue with djangoldp>=2.1.19 deployments in production. That version introduced djangoldp.middleware.AllowRequestedCORSMiddleware and replaced the custom LDPViewSet.dispatch method being used before

We were having issues with CORS headers and when looking at the servers affected I found that the middleware was not being included in the settings.yml, even though it is included in settings_default.py, so I think it's not being included in the auto-deployment

A manual fix is available - installing djangoldp>=2.1.19 and adding the middleware manually to settings.yml, then running djangoldp configure