'Error while listing all endpoints in Micronaut app (using /routes endpoint)
I have this sample hello world project in micronaut. After I added the micronaut-management dependency, I tried to enter to http://localhost:8080/routes to see all my endpoints. but It shows me This page isn’t working HTTP ERROR 401. Steps to reproduce: 1- Create a micronaut project using https://micronaut.io/launch , (Java 8 and maven). 2- Add the micronaut-management dependency to the pom.xml . 3- run the application and enter to http://localhost:8080/routes .
Solution 1:[1]
HTTP 401 -> Unauthorized access.
Micronaut has sensitivity feature, all management urls sensitivity are enable by default.
For /routes, following configuration can be added into application.properties to allow the /routes url access.
endpoints.routes.sensitive=false
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kus |
