Skip to content

Commit

Permalink
CORS policy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsu-ki committed Dec 28, 2024
1 parent e75e515 commit d00cd74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ def add_suggestions(request):
else:
messages.error(request, "Please fill all the fields.")
return JsonResponse({"status": "error"}, status=400)
else:
return JsonResponse({"status": "error", "message": "Method not allowed"}, status=405)


class GoogleLogin(SocialLoginView):
Expand Down

0 comments on commit d00cd74

Please sign in to comment.