Browse Source

try to fix cors

ilya_shyian 2 năm trước cách đây
mục cha
commit
8947394ae3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
     )))