This commit is contained in:
parent
a4813f95bb
commit
f79af33222
@ -33,11 +33,10 @@ DEBUG = True
|
|||||||
ALLOWED_HOSTS = ['https://izaac.knck.pl', 'izaac.knck.pl', 'localhost', 'izaac-backend', 'izaac-frontend']
|
ALLOWED_HOSTS = ['https://izaac.knck.pl', 'izaac.knck.pl', 'localhost', 'izaac-backend', 'izaac-frontend']
|
||||||
|
|
||||||
CORS_ALLOWED_ORIGNS = [
|
CORS_ALLOWED_ORIGNS = [
|
||||||
"http://localhost:8000",
|
|
||||||
"https://izaac.knck.pl",
|
"https://izaac.knck.pl",
|
||||||
"http://izaac.knck.pl",
|
"http://izaac.knck.pl",
|
||||||
"izaac-frontend",
|
"http://izaac-frontend",
|
||||||
"izaac-backend",
|
"http://izaac-backend",
|
||||||
]
|
]
|
||||||
|
|
||||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
|||||||
@ -222,6 +222,7 @@ class JobOfferCreateView(APIView):
|
|||||||
permission_classes = []
|
permission_classes = []
|
||||||
|
|
||||||
def post(self, request, format=None):
|
def post(self, request, format=None):
|
||||||
|
print(request.META)
|
||||||
serializer = JobOfferSerializer(data=request.data)
|
serializer = JobOfferSerializer(data=request.data)
|
||||||
if serializer.is_valid():
|
if serializer.is_valid():
|
||||||
if request.user.is_authenticated:
|
if request.user.is_authenticated:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user