Skip to content

Instantly share code, notes, and snippets.

@siumhossain
Created January 20, 2022 06:23
Show Gist options
  • Save siumhossain/76610c3995e78a6414ca5fd616b2745a to your computer and use it in GitHub Desktop.
Save siumhossain/76610c3995e78a6414ca5fd616b2745a to your computer and use it in GitHub Desktop.
regex value for allow all cross site request from https in django CORS_ALLOWED_ORIGIN_REGEXES
r"^(https:\/\/www\.|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment