django-cors-headers
$ pipenv install django-cors-headers
# or
$ pip install django-cors-headerspython -m pip install django-cors-headersMIDDLEWARE = [
...
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
...
]CORS_ORIGIN_WHITELIST = (
'google.com',
'hostname.example.com'
)CORS_ALLOWED_ORIGINS = [
"https://example.com",
"https://sub.example.com",
"http://localhost:8080",
"http://127.0.0.1:9000"
]INSTALLED_APPS = [
...
'corsheaders',
...
]
Also in C++:
- killall by name
- uninstall lightdm
- upgrade docker compose windows
- how to copy paste in git bash
- git stage
- instagram private viewer api github
- ubuntu install openjdk 8 source
- how to delete repository in github
- how to move from one to another drive in powershell
- update branch with master
- sum of array elements bash
- remove a link linux
- awk how to remove lines in one file that are found in another file
- create venv ubuntu 20.04
- list dockers docker compose
- check chage linux
- doskey permanent
- linux commad to show directories
- what is npm install
- linux remove last line from file
- instal .deb ubuntu
- scp copy recursive
- git push default
- dotnet list all packages