parse-dashboard version:5.0.0
parse-server version 6.0.0
dashboard access parse-server I get this error: âerror: Request using master key rejected as the request IP address â::ffff:xxx.x.xxx.xxxâ is not set in Parse Server option âmasterKeyIpsâ.â
parse-server app.js
const server = new ParseServer({
databaseURI: 'mongodb://serverip:27017/testdb', // Connection string for your MongoDB database
cloud: process.env.PARSE_SERVER_CLOUD || __dirname + '/cloud/main.js', // Path to your Cloud Code
appId: 'myAppId',
masterKey: 'myMasterKey', // Keep this key secret!
javascriptKey: 'myJavascriptKey',
serverURL: 'http://serverip:1337/parse', // Don't forget to change to https if needed
masterKeyIps: [],
liveQuery: {
classNames: ["Post", "Comment"], // List of classes to support for query subscriptions
},
useMasterKey: true,
allowClientClassCreation: false,
allowExpiredAuthDataToken: false
});
parse-dashboard app.js
var dashboard = new ParseDashboard({
apps: [
{
serverURL: "http://serverip:1337/parse",
appId: "myAppId",
masterKey: "myMasterKey",
graphQLServerURL: "http://serverip:1337/graphql",
appName: "MyApp",
},
],
users: [
{
user: "admin",
pass: "123456"
}
]
}, options);
masterKeyIps
Array.<String>
Restrict masterKey to be used by only these ips, defaults to (allow all ips) but itâs invalid
How should I set masterKeyIps