$routes->post on dev mode output <script> |
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.
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-747...t=debugbar
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
I see.
Alright, now it's disabled. Btw, what's debug toolbar do ? Any link i can read about it ? Thanks ! |
Welcome Guest, Not a member yet? Register Sign In |