Welcome Guest, Not a member yet? Register   Sign In
$routes->post on dev mode output <script>
#1

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.
Reply
#2

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! ***/
Reply
#3

I see.

Alright, now it's disabled.

Btw, what's debug toolbar do ?
Any link i can read about it ?

Thanks !
Reply
#4

Check this page.
Reply
#5

(11-08-2021, 01:39 AM)fujael Wrote: Check this page.

Nice ! Thanks !
Reply




Theme © iAndrew 2016 - Forum software by © MyBB