--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks @alianeI just realized that for wildcard kind of CORS , there is no Cookies.I've tried {withCrendentials: true}and at server side i did this :self.set_header('Access-Control-Allow-Origin', "*")self.set_header('Access-Control-Allow-Credentials', "true")Then , Allow-Credentials dosen't work with Allow-Origin * , at all. I need it because i open multiple sub domains , randomly , and for mobile app. and wildcards do not support sub-domains in Cors. only * or full address or Null.
CORS_ORIGIN_REGEX_WHITELIST = ('^(https?://)?(\w+\.)?google\.com$', )
<IfModule mod_headers.c>
SetEnvIfNoCase Origin "https?://(www\.)?(domain\.com|staging\.domain\.com)(:\d+)?$" ACAO=$0
Header set Access-Control-Allow-Origin %{ACAO}e env=ACAO
</IfModule>
something like above in tornado is possible ?. something like above in tornado is possible ?.<IfModule mod_headers.c> SetEnvIfNoCase Origin "https?://(www\.)?(domain\.com|staging\.domain\.com)(:\d+)?$" ACAO=$0 Header set Access-Control-Allow-Origin %{ACAO}e env=ACAO </IfModule>