Understanding CORS

CORS or Cross Origin Resource Sharing is an http mechanism to let a user gain access to resources located on a domain other that the one the site lives on by using some additional headers. So for example lets say your app located on http://test1.domain.com needs to make a REST call to an api located on http://test2.domain.com/some/awesome/endpoint.

Now By default a browser wouldn’t allow such a request. This is done for http security reasons. What that means is a browser wouldn’t allow a request made from within a script on a webpage to…




A Utopian Dreamer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Building the Frontend for a Milestone Referral Program (I/II)

How to write your own map, filter and reduce functions in JavaScript

Number Of Rectangles That Can Form The Largest Square

Dockerize a Node.js Web Service

Summary of CS Fundamentals by Brian Holt (Part 3 of 3: Data Structure Interfaces)

Through the Universe at Warp Speed: Implementing Vue.js with Django

Part 4: simplr-forms — declarative forms for React . Normalizers and Modifiers

Concise Code: Meet the New Assignment Operators in JavaScript

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshay Sinha

Akshay Sinha

A Utopian Dreamer

More from Medium

How to implement a log printing library from 0 to 1

Joined select with ‘knex’

Setting headers in postman via scripts

Introduction of NodeJS, KoaJS, and Restful services