DependencyTrack / DependencyTrack/frontend
Dynamic API Base Url
- Dominant language
- Vue
- Stars
- 171
- Forks
- 250
- Avg merge
- 11h 12m
- Merged PRs (30d)
- 82
Description
The enhancement may already be reported! Please search for the enhancement before creating one.
### Current Behavior:
Currently the frontend container requires an API_BASE_URL environment variable to populate the static/config.json, which hard couples the frontend to a domain URL.
### Proposed Behavior:
Since the frontend and apiserver can be deployed on the same domain, it would be nice if the frontend could dynamically just make a request to the domain it's hosted from. This alleviates potential CORS issues when hosted on the same domain, as browsers will default deny all other domains making requests to it.
A pattern for this i've used before, is if a base url isn't configured, fallback to using `document.location` to build the base URL.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.