-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error CORS Access-Control-Allow-Origin
#1
Comments
I use Cek Produk Halal MUI Api |
Kalo menggunakan javascript harus menggunakan callback om, ini contoh menggunakan jquery https://github.com/bachors/Ygrab.js/blob/master/js/ygrab.js |
JSONP kali maksudnya ya om ? |
Iya om @mazipan jsonp 👍 |
Btw ini project yang sedang saya coba bikin pake API tersebut https://github.com/mazipan/cek-halal Contoh request yang saya bikin ada di https://github.com/mazipan/cek-halal/blob/master/src/pages/Search.vue#L107 |
Mantap om @mazipan ijin fork untuk belajar vue 👍 |
Sekarang malah dapat error ini
Pake library ini https://www.npmjs.com/package/jsonp |
ini conto menggunakan callback jquery `GS('abc', function(arr) { function GS(a, b) { |
Ini bisa jalan om ? Sudah dicoba kah ? |
Udah nyoba pake jQuery
Ada ide kah om @bachors ? |
o'iya lupa om belum mengatur code callback di google script.y , sekarang mah sudah bisa 👍 http://bachors.com/code/produk-halal-api-javascript |
Masih belum bisa nih om @bachors :-( |
Kemungkinan karena content-type nya salah om @bachors. *cmiiw |
Sudah bener kok om content-type nya mah javscript :) |
Kok di saya dua duanya gak mau jalan ya demo yang dibuat diatas |
Dibukanya lewat smartphone ya om? |
Iya, gak bisa ya ? |
Error when trying to hit
https://sites.google.com/macros/exec?service=AKfycbx_-gZbLP7Z2gGxehXhWMWDAAQsTp3e3bmpTBiaLuzSDQSbIFWD&menu=nama_produk&query=abc
via httpclient.I use
axios
as httpclient.The text was updated successfully, but these errors were encountered: