- Published on
What is CORS?
- Authors
- Name
- Hyun Myung Kim
cross-origin
cross-origin refers to any one of the following 3 cases:
cross-origin은 아래 경우 중 하나입니다.- Protocol - When the two protocols are different. (HTTP and HTTPS)
- Origin - When the origins are different. (domain.com and sub.domain.com)
- Port number - When the port numbers are different. (3000 and 4000)
The browser limits the cross-origin HTTP requests due to security reasons.
- Protocol - 두 개의 Protocol이 서로 다를 때 (HTTP와 HTTPS) 2. origin - 두 개의 origin이 서로 다를 때 (domain.com와 sub.domain.com) 3. Port number - 두 개의 port number가 서로 다를 때 (3000와
What is CORS?
Cross-Origin Resource Sharing (CORS) is a browser mechanism which enables controlled access to resources located outside of a given domain.
CORS는 주어진 domain 외부의 자원에 접근을 가능하게하는 browser 방식입니다. However, it also provides potential for cross-domain attacks, if a website's CORS policy is poorly configured and implemented. CORS is not a protection against cross-origin attacks such as cross-site request forgery (CSRF).
.... to be continued