lucashicks1 / lambda-deco3801

Team project for DECO3801 in 2023 semester 2
4 stars 0 forks source link

adding middleware layer to resolve CORS error with React #31

Closed canvali closed 1 year ago

canvali commented 1 year ago

adding middleware layer to resolve CORS error with React. when HTTP requests are made from the browser (i.e. within front-end components), the localhost address of the React development server hosting the display web app should now be received as an allowed origin. we may need to look into this again if we plan to run the database on a different machine than the one running the database instance, but for now it should work i think?