Open
Description
Hi,
I'm trying to configure Flask-SocketIO to handle CORS for multiple subdomains (e.g., cors_allowed_origins='*.domain.com').
allowed_origins = [
'https://*.domain.com',
'http://*.localdomain.com'
]
socketio = SocketIO(app, cors_allowed_origins=allowed_origins)
However, I noticed that cors_allowed_origins does not support wildcards directly. unless it's from all domains (e.g., cors_allowed_origins='*'). I know I could make a list for all my subdomains but that would take so long since I created a lot of subdomains.
Could you please advise on the best approach to handle CORS with wildcard subdomains for Socket.IO? Is there a recommended way to configure this or any workarounds?
Thanks in advance!