Blanca is a full-stack software developer, currently focused on JavaScript and modern frontend technologies such as React. Blanca can be reached at her blog https://groundberry.github.io/ or @blanca_mendi on Twitter.
When our frontend makes requests to a backend that lives in a different domain, we'll have to deal with Cross-Origin Resource Sharing (CORS). In this article we'll build an Express proxy that will request stock data from the IEX API on our behalf, and will emit the right CORS headers so that our frontend can access it without problems.
If you've ever built a web app that had to request data from a different domain, you've probably had to wrap your head around the browser's same-origin policy and CORS. In this article we'll learn how to get around CORS issues using Create React App's proxying capabilities.
In this article we are going to build a React app to gather user input, use that input to request data from an API, and then render that data as a cool chart using the KendoReact StockChart. If you follow along, you'll have a nice little app that renders historical stock data in no time!