$routes->post on dev mode output <script> - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: $routes->post on dev mode output <script> (/showthread.php?tid=80484) |
$routes->post on dev mode output <script> - cocix - 11-07-2021 I created a route. $routes->post('api/item', 'API::add_item'); The code works. But if i use CI_ENVIRONMENT = development, i get the POST reply and a very long <script> tag, <script type="text/javascript" id="debugbar_loader" ... It disappear if i set CI_ENVIRONMENT = production. What is that long <script> ? And how to disable it on development ? Thanks. RE: $routes->post on dev mode output <script> - includebeer - 11-07-2021 It's the debug toolbar. You can disable it or adjust the filter to exclude it for some routes. See https://forum.codeigniter.com/thread-74788.html?highlight=debugbar RE: $routes->post on dev mode output <script> - cocix - 11-07-2021 I see. Alright, now it's disabled. Btw, what's debug toolbar do ? Any link i can read about it ? Thanks ! RE: $routes->post on dev mode output <script> - fujael - 11-08-2021 Check this page. RE: $routes->post on dev mode output <script> - cocix - 11-08-2021 (11-08-2021, 01:39 AM)fujael Wrote: Check this page. Nice ! Thanks ! |