DependencyTrack / DependencyTrack/frontend

Show user friendly error message when API requests are sent to the front-end

Open
#178 0 comments 3 reactions 0 assignees View on GitHub
enhancement good first issue p3
Dominant language
Vue
Stars
171
Forks
250
Avg merge
11h 12m
Merged PRs (30d)
82

Description

### Current Behavior:
A lot of new Dependency-Track users accidentally try to send API requests (like uploading an SBOM) directly to the front-end container, not knowing the front-end and API server are deployed separately. The nginx front-end then returns a 405 - Method not allowed response, but this doesn't provide the user with enough information to find out what the problem is.

### Proposed Behavior:
Override the default nginx 405 page with a custom page, providing the user with some guidance on how to solve the problem. Something along the lines of:
``` 405 - Method not allowed. This probably happened because an API request was sent to the Dependency-Track front-end application. The front-end and API server are deployed separately, so API calls should be made to the API container. See https://docs.dependencytrack.org/getting-started/distributions/ for more information. ```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.