What is Cors ?

  • CORS- Cross-Origin Resource Sharing.
  • It is header-based mechanism that allows a server to indicate any origins like scheme, domain, or port other than its own from which a browser should permit loading resources.
  • In order to check that the server will permit the actual request, CORS also relies on a mechanism by which browsers make a “preflight” request to the server hosting the cross-origin resource.
  • The browser sends headers that indicate the HTTP method and headers that will be used in the actual request in Preflight.
  • Browsers restrict cross-origin HTTP requests initiated from scripts for security purposes.
  • A web application using those APIs can only request resources from the same origin the application was loaded from unless the response from other origins includes the right CORS headers.
  • Data transfers between browsers and servers and CORS mechanism supports secure cross-origin requests.
  • This article is for front-end developers, web administrators and server developers.

Leave a Reply

Your email address will not be published.

You May Also Like

What is Flexbox ?

It is a one-dimensional layout model that has efficient and flexible layouts with distributed spaces among items to control their alignment structure in CSS . It is a layout model…
View Answer

What is JS ?

It is a small piece of javascript program that can add user interactivity to your website. A Script could provide a dropdown menu and generate a pop-up alert box message.…
View Answer

What is the difference between SOAP and REST ?

                  SOAP                    REST It is a protocol. It is an architectural style. SOAP- Simple Object Access Protocol. REST- Representational State Transfer. It can’t use REST because it is a…
View Answer

What is Grid system ?

It is a structure comprising a series of vertical and horizontal lines which intersect and used to arrange content. Is a way of providing a system that designers can work with…
View Answer