Message from JavaScript discussions

July 2018

— 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

— 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

— No, server does not work. i use express

— The problem is the server