fanout / django-eventstream

Server-Sent Events for Django
MIT License
650 stars 85 forks source link

multi sites support #39

Open faridos opened 4 years ago

faridos commented 4 years ago

is it possible to support domain wildcard ? like : EVENTSTREAM_ALLOW_ORIGIN = '*.your-domain.com'

jkarneges commented 4 years ago

The value is used directly as the Access-Control-Allow-Origin response header, which I believe only supports full wildcard (* by itself). I don't think a subdomain wildcard will work.

jkarneges commented 4 years ago

You might try using the django-cors-headers library if you need more control over this.