OpusCapita / filemanager

React based FileManager for browser ( + FS REST API for Node.js and Express)

Home Page:https://demo.core.dev.opuscapita.com/filemanager/master/?currentComponentName=FileManager&maxContainerWidth=100%25&showSidebar=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Header value to API call

marktoh opened this issue · comments

I have an access token that I would like to pass as a key:value pair like Authorization: Bearer {accessToken} into the header of the HTTP Request for authentication.

Is there a way for me to modify the configuration options of the API call? I have looked into apiOptions but I am having some trouble locating the props that it receives.

Hi!

There is no support for this functionality now.

The easiest way to achieve what you want - just run a simple proxy to modify headers as you wish.

For example: https://serverfault.com/questions/391554/forward-custom-header-from-nginx-reverse-proxy