fanout / django-eventstream

Server-Sent Events for Django
MIT License
638 stars 84 forks source link

Add capability to have a list for CORS ORIGIN #142

Closed erfantarighi closed 2 months ago

erfantarighi commented 3 months ago

Add capability to detect Origin with Referer header Use Cases: sometimes your backend is behind a proxy such as AWS CloudFront or ... and the request.build_absolute_uri is not a good source to check the Origin

jkarneges commented 2 months ago

Looks reasonable. Thank you.