Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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コマンドの実行が必要です)

参考

v97ug
型に生き、型を守りて、型を往く
https://anison-pianist.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away