Cloudant CORS概述
Cloudant的CORS应用程序示例。如何在IBM Cloudant中启用CORS
- 在Cloudant仪表板中,从左侧菜单中选择“Account”。
- 在“CORS”选项卡中,确保已启用CORS。
- 选择“Restrict to specific domains”,然后指定您的域。如果您使用Github Pages,则应在此处指定https://(your-username).github.io/。
如何将prefs.json导入IBM Cloudant
- 在您的Cloudant中创建数据库,例如mydb。
- 使用curl中的批量插入API导入prefs.json:
$ curl -u \"username:password\" -XPOST \"https://xxxxx-bluemix.cloudantnosqldb\"