From 5bf87205cc9a8c672a0c1351d43a81c74bf4555b Mon Sep 17 00:00:00 2001 From: sindhu Date: Wed, 28 Aug 2024 17:13:32 +0700 Subject: [PATCH] step 17 : fix cors ketika menggunakan base url graphql di server --- lib/app/constant.dart | 7 +++++-- web/index.html | 15 +++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/app/constant.dart b/lib/app/constant.dart index ef1820c..1e637d7 100644 --- a/lib/app/constant.dart +++ b/lib/app/constant.dart @@ -4,8 +4,11 @@ class Constant { // static double designHeight = 1024; // static double designWidth = 1440; - // base url graphql - static String baseURLGraphQl = "http://devone.aplikasi.web.id:3300/query"; + // base url graphql web di server + static String baseURLGraphQl = "https://devone.aplikasi.web.id/query"; + + // base url graphql web pada waktu develop + // static String baseURLGraphQl = "http://devone.aplikasi.web.id:3300/query"; // static String baseURLGraphQl = "http://localhost:8080/query"; diff --git a/web/index.html b/web/index.html index 518b0e4..3b19f73 100644 --- a/web/index.html +++ b/web/index.html @@ -38,7 +38,7 @@ - --> - --> + +