Adds this header to GetMap requests for MapBox - "Authorization: Bearer ${jwtToken}"
New environment variable
REACT_APP_USE_GEOSERVER_PROXY
On server.js, a new API is added:
/geoserver-proxy
MapBox will be sending requests here when REACT_APP_USE_GEOSERVER_PROXY is true, it adds the JWT token to the header before sending the requests to the specified source
In mapbox-container.tsx
a transformRequest field is added to the Map object, when REACT_APP_USE_GEOSERVER_PROXY is true, mapbox will send the requests to /geoserver-proxy
Overview:
New environment variable
On server.js, a new API is added:
In mapbox-container.tsx