PFFile url returns url 以 http 而不是 https 开头
PFFile url returns url starts with http instead of https
我在 Heroku 上有一个解析服务器,当我尝试获取 PFFile url 它 returns 以 http 而不是 https 开头的 url 时,我如何访问url 在 swift?
中以 https 开头
您需要在 index.js 中设置变量 publicServerURL
(不能
这是我的:
publicServerURL: process.env.SERVER_URL || 'http://localhost:1337/parse',
然后您可以在 Heroku 的环境变量下轻松设置它。或者将其设置为与 serverUrl
相同的值
我在 Heroku 上有一个解析服务器,当我尝试获取 PFFile url 它 returns 以 http 而不是 https 开头的 url 时,我如何访问url 在 swift?
中以 https 开头您需要在 index.js 中设置变量 publicServerURL
(不能
这是我的:
publicServerURL: process.env.SERVER_URL || 'http://localhost:1337/parse',
然后您可以在 Heroku 的环境变量下轻松设置它。或者将其设置为与 serverUrl