saifahn / expenseus

A serverless expense tracking app
0 stars 0 forks source link

Allow CORS from the server #3

Closed saifahn closed 3 years ago

saifahn commented 3 years ago

Overview

Currently, the front end and back end will be running from different domains (different ports on localhost locally), so CORS needs to be allowed so that they can communicate with one another.

saifahn commented 3 years ago

Here is the CORS middleware for go-chi?

https://github.com/go-chi/cors