Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Karlos's avatar

connect Adminlte as a separate web application to external Rest Api

Hello, My plan is to create a Dashboard, that visualizes the process of several projects. So far i have implemented a rest api, that provides a json response with the information needed. I want to run the api on a different server than the webapplication that visualizes the data. Is it possible to use Adminlte as a seperate Webapplication and connect it to the Rest api? I am new to laravel and programming in general, so please excuse me if this question seems stupid to experienced programmer.

0 likes
2 replies
Punksolid's avatar

Yes, it is possible, but you will need to enable CORS in the headers of the rests api response if not, the browser will not let you make the petition properly.

I recommend you this package, its easy to implement. https://github.com/barryvdh/laravel-cors

1 like
Karlos's avatar

Great, thanks for the response. I'll try this.

Please or to participate in this conversation.