Skip to content

Restful key does not prevent creating new objects #2816

Closed
@majd-asab

Description

@majd-asab

Issue
The exact issue is that I dont want restful API to be able to write new objects to classes, so I set up a restful API key which i thought it would prevent any restful calls(a call that doesn't include the restful key) from writing any new objects, however, i am still able to do so(with or without the key).

Steps to reproduce

curl -X POST \

-H "X-Parse-Application-Id: App"
-H "Content-Type: application/json"
-d '{"someKey":"someValue"}'
http://127.0.0.1:1337/somelocation/classes/testClass

Expected Results

Not be able to create new objects to class using restful api

Actual Outcome

able to create new objects

Environment Setup

  • Server
    • parse-server version 2.2.12
    • Operating System: ubuntu 14.04
    • Localhost or remote server? local

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions