# CORS ###### tags:`NodeJS` https://developer.mozilla.org/zh-TW/docs/Web/HTTP/CORS [DAY04 - API串接常見問題 - CORS - 概念篇 (1)](https://ithelp.ithome.com.tw/articles/10267360) Cross-Origin Resource Sharing Cross-Origin 跨來源 Origin: 以下三者皆相同,我們才會說是同源,否則就是跨來源 - schema:protocol (http, https) - host:domain (example.com, localhost, 123.123.123.123) - port:port (3000.8000) http://lightda.io:80 (1) http://api.lightda.io:80 (跨) (2) https://lightda.io:80 (跨) (3) http://lightda.io:3000 (跨) (4) http://lightda.io:80/test.html (同) ==我們用postman打API的時候,就不會看到CORS的問題,因為管理員是postman不是瀏覽器了!==