Kaynağa Gözat

try to fix cors

ilya_shyian 2 yıl önce
ebeveyn
işleme
8947394ae3
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      store_back/urls.py

+ 1 - 1
store_back/urls.py

@@ -16,7 +16,7 @@ urlpatterns = [
     path('api/upload/',image_upsert),
     path('api/auth/',include('authAPI.urls')),
     path('api/admin/', admin.site.urls),
-    path('api/graphql/',csrf_exempt(GraphQLView.as_view(
+    path('/api/graphql/',csrf_exempt(GraphQLView.as_view(
         graphiql=True,
         schema = schema
     )))