This project serves as an introduction to handling Cross-Origin Resource Sharing (CORS) issues when interacting with external APIs from a front-end application. It demonstrates best practices for overcoming CORS-related problems in modern web development.
- Fetches data from external APIs
- Handles CORS errors in different environments
- Prerequisites: Ensure you have Node.js installed.
- Clone this repository:
git clone https://github.com/Thinkful-Ed/starter-cors-front-end.git
- Navigate to the project directory:
cd starter-cors-front-end
- Install dependencies:
npm install
- Start the development server:
npm start
To run the application locally, after starting the development server, open http://localhost:3000 in your browser. This project will make API calls and demonstrate how to resolve CORS errors using proxy servers or appropriate headers.
- React: JavaScript library for building user interfaces.
- JavaScript (ES6+): The core programming language used.
- Node.js: For managing dependencies and development scripts.
- CSS: For basic styling.