step 17 : fix cors ketika menggunakan base url graphql di server
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
<!-- This script adds the flutter initialization JS code -->
|
||||
<script src="flutter.js" defer></script>
|
||||
<script>
|
||||
<!-- <script>
|
||||
|
||||
window.flutterLocationCallback = (data) => {
|
||||
console.log('Received data from Flutter:', data);
|
||||
@@ -89,25 +89,28 @@
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</script> -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="flutter_bootstrap.js" async></script>
|
||||
<script>
|
||||
<!-- <script>
|
||||
// var API_KEY = "AIzaSyCiN7EeJsUpXVLQKFfrj3sE5OTKebjpzek";
|
||||
// var API_KEY = "AIzaSyCztj0X7erH-uqotFfe_Yd-Nt0oBJu6FeM";
|
||||
|
||||
var API_KEY = "AIzaSyAVUr4Ku4O1HlSkK8n9KGnUyqvsXBL-yfs";
|
||||
var script = document.createElement('script');
|
||||
script.src = "https://maps.googleapis.com/maps/api/js?key=" + API_KEY;
|
||||
document.head.appendChild(script);
|
||||
|
||||
// tambahan
|
||||
window.onload = function () {
|
||||
// window.onload = function () {
|
||||
// getLocationAndSend();
|
||||
};
|
||||
// };
|
||||
// tambahan
|
||||
</script>
|
||||
</script> -->
|
||||
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAVUr4Ku4O1HlSkK8n9KGnUyqvsXBL-yfs"></script>
|
||||
<script src ="https://maps.googleapis.com/maps/api/js?key=AIzaSyAVUr4Ku4O1HlSkK8n9KGnUyqvsXBL-yfs&callback=initMap&v=weekly&libraries=marker" defer></script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user