Added a simple log utility for the backend. Now the developer must log in his code by using the log(level,message) function.
For example:
log("DEBUG", "some debug message");
Notes:
the level must be in capital
Added also the ability to handle cookies and headers from the browser. Now any http requests from external source must include the mode:'cors' , credentials : 'include' (Fetch request).
Added a simple log utility for the backend. Now the developer must log in his code by using the
log(level,message)
function.For example:
log("DEBUG", "some debug message");
Notes:
Added also the ability to handle cookies and headers from the browser. Now any http requests from external source must include the
mode:'cors' , credentials : 'include'
(Fetch request).