LoginSignup
0

More than 3 years have passed since last update.

monaca demoでkintoneのREST APIを実行してデバッグできるようにする

Posted at

CORSの制約でlocalhostからだとkintoneのREST APIを叩けません。でも、CORSを無視するGoogle Chromeのオプションをつけて起動すれば、なんとkintoneのREST APIが叩けます!

環境

macOS Mojave バージョン 10.14.3
Google Chrome バージョン 74.0.3729.169

方法

Google Chromeを全て閉じてから、以下のコマンドでGoogle Chromeを開きます。

open http://localhost:8000/ -a "/Applications/Google Chrome.app" --args --disable-web-security --user-data-dir

あとはhttp://127.0.0.1:8000/monaca-demo/にアクセスするとWebでデバッグができます。(もちろんmonaca demoコマンドの実行が必要です)

参考

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0