Hello,
I have a question regarding a project generated with PHPMaker. After deploying the application to a live server, I noticed that the Swagger API documentation (accessible via /swagger
) is publicly available to anyone without requiring authentication.
I would like to restrict access to the Swagger page so that only authorized users (e.g., logged-in users) can view it.
Is there a recommended way within PHPMaker to secure or disable access to the Swagger interface?
If not configurable directly from the PHPMaker UI, can I protect the route by adding a login check or custom condition in the routes.php
or index.php
file?
I would appreciate any guidance or best practices on how to properly secure this part of the application.
Thank you in advance for your support.
Best regards,