cors
This commit is contained in:
1
Pipfile
1
Pipfile
@@ -10,6 +10,7 @@ numpy = "*"
|
||||
matplotlib = "*"
|
||||
scipy = "*"
|
||||
django-bootstrap-datepicker-plus = "*"
|
||||
django-cors-headers = "*"
|
||||
|
||||
[dev-packages]
|
||||
|
||||
|
10
Pipfile.lock
generated
10
Pipfile.lock
generated
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_meta": {
|
||||
"hash": {
|
||||
"sha256": "c6a6b8d3ebd478446b8e8800b29555ed874b559625670a9961406e358b897e06"
|
||||
"sha256": "3a6a62bdfa1874ae8aa1cfb34f7a47157976efb3dcf248b10b6953f1a7fa016b"
|
||||
},
|
||||
"pipfile-spec": 6,
|
||||
"requires": {
|
||||
@@ -39,6 +39,14 @@
|
||||
"index": "pypi",
|
||||
"version": "==3.0.5"
|
||||
},
|
||||
"django-cors-headers": {
|
||||
"hashes": [
|
||||
"sha256:5545009c9b233ea7e70da7dbab7cb1c12afa01279895086f98ec243d7eab46fa",
|
||||
"sha256:c4c2ee97139d18541a1be7d96fe337d1694623816d83f53cb7c00da9b94acae1"
|
||||
],
|
||||
"index": "pypi",
|
||||
"version": "==2.4.0"
|
||||
},
|
||||
"kiwisolver": {
|
||||
"hashes": [
|
||||
"sha256:0ee4ed8b3ae8f5f712b0aa9ebd2858b5b232f1b9a96b0943dceb34df2a223bc3",
|
||||
|
@@ -30,6 +30,7 @@ ALLOWED_HOSTS = ['*']
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'bootstrap_datepicker_plus',
|
||||
'corsheaders',
|
||||
'web.apps.WebConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
@@ -40,6 +41,7 @@ INSTALLED_APPS = [
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
@@ -118,3 +120,5 @@ USE_TZ = False
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# DATETIME_FORMAT = ''
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
|
Reference in New Issue
Block a user