Skip to content

IKUpload: How to modify the GET request's header? #101

@devcloser

Description

@devcloser

From uploading-files-in-react docs

  • I've created the auth endpoint (express-js)
  • I've specificed the auth endpoint for authenticationEndpoint
  • Image upload is working as expected

However, I have a concern that this is not considered secure as anyone could call the auth endpoint and get a token.

Then, I saw the reply here

    The endpoint is supposed to host on your backend. You can make it secure in a way that no unauthorised user can get token. Similar to how you might be protecting other resources on your application.

Originally posted by @imagekitio in #50 (comment)

So, I protected the auth endpoint, but I could not find a way to modify the authenticationEndpoint GET request's header to pass users Bearer Token along from the client-side.

Any advice, please?

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