adamchainz / django-cors-headers

Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Does makes sense to use if my static files are served by Apache2

eduardonunesp opened this issue · comments

Quick question, I would like to know if it makes sense the needing to use this module if my application is served on Apache2 as the static files server, the case is my SVG files are been blocked by chrome even with my SVG files been served by Apache2. So I received a recommendation to take a look at this project, well I'm not sure exactly about the internals of the Django, but if my static files are served on another HTTP server this module appears useless in my case. Is that correct?

Indeed it won't apply to those SVG files. Maybe try whitenoise for your static assets: http://whitenoise.evans.io/en/stable/ .