Message from JavaScript discussions

July 2018

— Console doesnt display code, it is on debugger tab..

— 

You technically can...

document
.getElementsByTagName('script')
.forEach(elem =>
console.log(elem.textContent));


But you should use the other devtools tabs

— What mean it?

— Cors happens when you are trying to request from a different url than the one running .. if your serving using express .. just npm i cors .. and you should be fine

Message permanent page

— Then add it in server .. like this
Const cors =require ("cors");


,,,,

App.use(cors);

— That should be all .. tell me if works

— Or you can start browser in terminal with the flags to allow crosa origin request

— This sounds terribly insecure

— Thats because it is..

— But browser are made to never allow cors .. so you gotta hack your way

— For chrome there is a simple extension where you can enable or disable cors with one click

— For chrome there is a simple extension where you can enable or disable cors with one click