Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add CORS headers for domains matching a regex in uWSGI
# Add CORS header for Origin's which match a regexp
route-if = regexp:${HTTP_ORIGIN};^.*\.example\.com$ addheader:Access-Control-Allow-Origin: ${HTTP_ORIGIN}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.