bradtraversy / microposts_fullstack_vue

Full stack vue and express
172 stars 84 forks source link

http://localhost:8080' has been blocked by CORS policy #4

Open waelio opened 5 years ago

waelio commented 5 years ago

Access to XMLHttpRequest at 'localhost:5000/api/histories' from origin 'http://localhost:8080' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

enwebside commented 5 years ago

Include and install CORS : https://github.com/expressjs/cors#readme