Skip to content

Global Config not returning parameters #596

Closed
@mjonatd

Description

@mjonatd

When using the dashboard, under "Core | Config" , I am able to save global config variables. However, when I go back to the dashboard, the config variables are not displaying due to a 403 unauthorized.

I can, however, go use postman: http://localhost:1337/parse/config and pass the masterkey/application id in the header and it displays all the configs I have added.

I have "fixed" it by changing the ConfigStore.js

switch (action.type) {
case ActionTypes.FETCH:
return Parse._request(
'GET',
'config',
{ params: { [action.param]: Parse._encode(action.value) } },
{ useMasterKey: true }
).then(( attributes ) => {
console.log(attributes);
return Map({ lastFetch: new Date(), params: Map(attributes.params) });
});

Is this the correct way of fixing it? If not, what suggestions would you have?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions