瀏覽代碼

try to fix cors

ilya_shyian 1 年之前
父節點
當前提交
f531639ced
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
     )))