-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
API Routingsetup routes for apisetup routes for apiBackendtask relates to backendtask relates to backendfeature-requestrequest a new featurerequest a new feature
Description
The current backend does not have CORS (Cross-Origin Resources Sharing) which is to ensure where the request is sent. This feature prevents any alien entity to make a request to the server. Other than the known frontend domain, all non-specify cannot make any request to our server. Prevent at a certain level of CSRF attack
For this task:
- Install cors from npm and apply to
backend/app.js - Add a frontend origin of this project to the
.envfile - Configure necessary variables of cors (Make sure to add frontend origin variable to Cors)
Metadata
Metadata
Assignees
Labels
API Routingsetup routes for apisetup routes for apiBackendtask relates to backendtask relates to backendfeature-requestrequest a new featurerequest a new feature