ballyalley-o / tccp-server

A scalable backend server solution designed to manage and orchestrate software development bootcamps/courses from multiple schools, providing robust APIs and data storage capabilities.
2 stars 0 forks source link

Fix CORS error and refactor server configuration #44

Closed ballyalley-o closed 6 months ago

ballyalley-o commented 6 months ago

This pull request fixes the CORS error that was occurring when making requests to the server. It also refactors the server configuration to improve code organization and readability. The changes include moving the header configuration to a middleware, adding a CORS configuration middleware, and removing unused imports. These changes ensure that the server sends the correct CORS headers and allows requests from the specified origins. This resolves issue #40 and issue #43.