ondanieldev / news-proxy

A simple proxy serverless developed in NextJS to fix News API CORS error.

Home Page:https://news-proxy.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

When I was developing an application that uses the News API, I had a problem: the news API couldn't enable CORS for my frontend. So, I needed to develop this proxy for intermediate the requests.

Reuse

This proxy can be used as a proxy to any API, you just need to do some changes on the API that the code calls.

How to run

  1. Install project dependencies:

    npm install or yarn install

  2. Run project:

    npm start or yarn start

License

MIT © Daniel Oliveira

About

A simple proxy serverless developed in NextJS to fix News API CORS error.

https://news-proxy.now.sh

License:MIT License


Languages

Language:JavaScript 100.0%