From 6367b3e157348da32c3753eef16728ef66ec5d30 Mon Sep 17 00:00:00 2001 From: graks Date: Thu, 20 Sep 2018 11:13:33 +0100 Subject: [PATCH] added corsheaders --- .../__pycache__/__init__.cpython-36.pyc | Bin 172 -> 167 bytes .../__pycache__/settings.cpython-36.pyc | Bin 2656 -> 2744 bytes .../__pycache__/urls.cpython-36.pyc | Bin 1090 -> 1085 bytes .../__pycache__/wsgi.cpython-36.pyc | Bin 585 -> 580 bytes backend/RateMyCourse/settings.py | 4 ++++ .../__pycache__/__init__.cpython-36.pyc | Bin 168 -> 163 bytes .../postings/__pycache__/admin.cpython-36.pyc | Bin 291 -> 286 bytes .../__pycache__/models.cpython-36.pyc | Bin 567 -> 562 bytes .../api/__pycache__/__init__.cpython-36.pyc | Bin 172 -> 167 bytes .../__pycache__/serializers.cpython-36.pyc | Bin 768 -> 763 bytes .../api/__pycache__/urls.cpython-36.pyc | Bin 402 -> 397 bytes .../api/__pycache__/views.cpython-36.pyc | Bin 1462 -> 1457 bytes .../__pycache__/0001_initial.cpython-36.pyc | Bin 797 -> 792 bytes .../0002_auto_20180916_1536.cpython-36.pyc | Bin 628 -> 623 bytes ...0003_universityreview_title.cpython-36.pyc | Bin 673 -> 668 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 179 -> 174 bytes 16 files changed, 4 insertions(+) diff --git a/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc b/backend/RateMyCourse/__pycache__/__init__.cpython-36.pyc index e2816b75c866d992cc8c956e704355487cbdf874..a57441012a2a1fd05207c0a4b971dd300ff6bd38 100644 GIT binary patch delta 31 ncmZ3(xSWyQn3tF9Y{BA*>=uk66CF(0lM<7&Q}a?LHs}BVkp&6L delta 36 scmZ3^xQ3D4n3tF9pxV5N>=ulX6CF%=f)YzoeJh>wON)wACsykK0KP2?ZvX%Q diff --git a/backend/RateMyCourse/__pycache__/settings.cpython-36.pyc b/backend/RateMyCourse/__pycache__/settings.cpython-36.pyc index d29b11a1abacc36cab1e043f6185cf74f6087639..8e7d0e87a4a4add54f26a7a8a1b535909f5e742e 100644 GIT binary patch delta 335 zcmYj}yG{Z@7=?G13Azi*eYpt=uAnB0*9X8*5E3E@n3xO&LC&x)qK2igw6L=?lTcCV z8%X0D*jrc|eGna~_>=F;$;rw86?-$SBg4@9qnGx3Kv8~_h0|m%OUB<%R`ni+tuY+| z1Q9|Q5$PymFlFmQocWQk6;LFRLK-W`*wi7&PN_|pfmId&WkIYV$H_n)gt!;^2Nmm6 z)gdel3mbB6p)hxG?oEf-ltr+Q1ME!mDvM&5#ZY3Vd=-}@BuVVC6x5coefUaT;`jA# z-SH*wg1h6{NF9<)VWBBqJHU|NbzNSn$l>h6God6coaN^PGb@c|tJ7%Ks4&;0=mLsyRg delta 263 zcmdlX`ane4n3tDpUe>&5Q$7ZU#|%h-1ITs&;^G?iZVajBT5=c=@Q39$|Oi>1tDqvDIlQEqoN-#w)ML$Jr4pWp+iguK6icXZc zND51oC=iPQv3QDZltc=zjs118^OG+|FlOwLZtOPMUmWB>reP73`1 delta 39 vcmX@Ya*~DJn3tF9pxV5R>=zjsLnq&4G~o$KEJ^jPbj~j=Do&j&!ejsd`9ut& diff --git a/backend/RateMyCourse/settings.py b/backend/RateMyCourse/settings.py index 03b8eff..626db12 100644 --- a/backend/RateMyCourse/settings.py +++ b/backend/RateMyCourse/settings.py @@ -31,6 +31,7 @@ ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ + 'corsheaders', 'postings', 'django.contrib.admin', 'django.contrib.auth', @@ -46,6 +47,8 @@ MIDDLEWARE = [ 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + 'corsheaders.middleware.CorsMiddleware', + 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', @@ -71,6 +74,7 @@ TEMPLATES = [ WSGI_APPLICATION = 'RateMyCourse.wsgi.application' +CORS_ORIGIN_ALLOW_ALL = True # Database # https://docs.djangoproject.com/en/2.0/ref/settings/#databases diff --git a/backend/postings/__pycache__/__init__.cpython-36.pyc b/backend/postings/__pycache__/__init__.cpython-36.pyc index 6a6293fccf5f91e41b11393de4ed851d10c26a50..0e233cfdfb43af07eeaef5698628771f1dc9f185 100644 GIT binary patch delta 31 ncmZ3%xR{aMn3tF9Y{BA*>=ujx6CF(0lM<7&Q}a?LHfR6SPi4G<_L5U@)zLn1TrA5W56RR}1 diff --git a/backend/postings/__pycache__/admin.cpython-36.pyc b/backend/postings/__pycache__/admin.cpython-36.pyc index 456a99854cf946b125edb107ae5b184da9a7d58b..358d84feee473c5db5129dc8b3b3c0748b204e78 100644 GIT binary patch delta 31 ncmZ3?G>?hhn3tF9Y{BA*?3);UC+;#~PfASAPR&c1_)8N2o%ahK delta 36 scmbQow3vzAn3tDpm)^XI?3);aChjuf2}&$U^{sTyFD)ugo%mG~0MCOA!~g&Q diff --git a/backend/postings/__pycache__/models.cpython-36.pyc b/backend/postings/__pycache__/models.cpython-36.pyc index 0f6adad733f29b25c863f529b5c75aabbb0c5aec..4631b3f29a58c9805bb43219a19969c1ea771242 100644 GIT binary patch delta 34 qcmdnavWbP=n3tF9Y{BA=uk66CF(0lM<7&Q}a?LHs}BVkp&6L delta 36 scmZ3^xQ3D4n3tDpNA|pl>=ulX6CF%=f)YzoeJh>wON)wACsykK0K_~Cs{jB1 diff --git a/backend/postings/api/__pycache__/serializers.cpython-36.pyc b/backend/postings/api/__pycache__/serializers.cpython-36.pyc index 10d24856fc990f7d8a5ea28af2005cdc90ab530d..201319deb53a8a81ed4996796338b717934d928a 100644 GIT binary patch delta 34 qcmZo*`_0O3%*)GlwqWr__T!9<;gioZny@D&CTFMSrA+2$`Un8PnG2Wz delta 39 vcmey(+Q7zc%*)HQy?x$B_T!9;;UBfs-p3P1utXle1IvQa0~k{KpIc!O{z} delta 40 wcmdnUy^WjQn3tDpTl>6?>;;UBVUsHuO?ZM5OHzF+o%2hJic>dlX8gwt0RK4+t^fc4 diff --git a/backend/postings/migrations/__pycache__/0001_initial.cpython-36.pyc b/backend/postings/migrations/__pycache__/0001_initial.cpython-36.pyc index c803cc1dca868317a7cbdfc48afd247a71fd936e..9cf0b28c4ef1f4bc165f36ec05f744e2a7c1d6d5 100644 GIT binary patch delta 120 zcmbQsHiM1bn3tF9Y{BAatnelmvxv4KtFfcG^GT!3KO{|E|NzF?y$%vX< zz<8Nk1}I(xB7VhB_G2<(PfASAPR&c1+{cuz0ha?SD3S%Ly2W9Wo1apelWNBdqz>RaiYUs_b0I=Pc6T>!2Ctg1+U60-yVfTSId diff --git a/backend/postings/migrations/__pycache__/0002_auto_20180916_1536.cpython-36.pyc b/backend/postings/migrations/__pycache__/0002_auto_20180916_1536.cpython-36.pyc index 9ddc9d12b2badc5d9f10c19bb207a104c6a010c5..f2e4599fa5757fed22547998880d814204ec93fb 100644 GIT binary patch delta 93 zcmeyu@}7m=n3tF9Y{BA*?8k*~36$n#mZcUIXO>hJrIux;mfxEA(1!8WWI4t%ZV?6s lh9VI0D{Jz6Micg=#N_PMyp+lJ8FK~Ta$p5TqLX8oBmfgG9OM81 delta 118 zcmaFQ@`Z)nn3tC;JZs)W_T$1)0;PGGWvNBQnI)A)sb!g|F(7Kcr4eoARhsvR?sSIh(? Gc$fj7w;)LX diff --git a/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc b/backend/postings/migrations/__pycache__/0003_universityreview_title.cpython-36.pyc index 7d01f6fc7610c68b7baa63265654592c113ab38d..fb98ec203e36a3575ffe20282fa7f3ddec1340a4 100644 GIT binary patch delta 34 qcmZ3;I)|0rn3tF9Y{BA<><1Yc^Cq8UG+|FlOwLZtOPS2cGy?#+L<<1YcizlCCG~o$KEJ^jPbj~j=Do&lu!ZZT__SOvh diff --git a/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc b/backend/postings/migrations/__pycache__/__init__.cpython-36.pyc index 4b1a3b7d9f6cad627ce938410c359417433329ac..a21ad51f9c68d203eb2a3bdee02aa93dd9dd33d7 100644 GIT binary patch delta 31 ncmdnYxQ>zCn3tF9Y{BA*>=umC6CF(0lM<7&Q}a?LHW&i{lNkx- delta 36 rcmZ3-xS5gNn3tEUP-EUib_>RYi4G<_L5U@)zLn1TrA5W56RV8@xNZwQ