Skip to content

403 Error on FilesRouter #1384

Closed
Closed
@mcclaskiem

Description

@mcclaskiem

I am using an afterDelete hook to handle deleting a File that is included in each object. From the hook I am using the following the code.

    Parse.Cloud.httpRequest({
        url: fileUrl,
        method: 'DELETE',
    }).then(function(response) {
        console.log(response);
    }, function(error) {
        console.log("AFTER DELETE ERROR!", error);
    });

However the DELETE is returning a 403 before the deleteHandler is even called. I see that the FileRouter is using a enforceMasterKey method but I am unsure how to alter my request to use the masterkey as Parse.Cloud.useMasterKey(); did not work.

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