dev@locazia: try fix 400 options
This commit is contained in:
parent
d74ecbb353
commit
4c5f74f21f
|
|
@ -76,4 +76,4 @@ async def close_db_session(request, response):
|
|||
response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
response.headers["Access-Control-Allow-Methods"] = "GET, POST, PUT, DELETE, OPTIONS"
|
||||
response.headers["Access-Control-Allow-Headers"] = "Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token, Authorization, Refer"
|
||||
|
||||
return response
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ import hashlib
|
|||
|
||||
|
||||
async def s_api_v1_auth_twa(request):
|
||||
print("REQUESTED // DEBUG")
|
||||
|
||||
if not request.json:
|
||||
return response.json({"error": "No data provided"}, status=400)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue