cairinmisa / IT-Project-COMP30022

Repository for IT Project - COMP30022
1 stars 0 forks source link

Fix: Issues with CORS sending requests from Frontend to Backend [AWS] #93

Closed cairinmisa closed 4 years ago

cairinmisa commented 4 years ago

CURL command works for making requests to MongoDB. Can't make any requests from the frontend website, it provides the error:

Google Chrome: Manifest: Line: 26, column: 1, Unexpected data after root element

xhr.js:184 POST http://localhost:8000/profile/login net::ERR_CONNECTION_REFUSED

Mozilla Firefox: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8000/profile/login. (Reason: CORS request did not succeed). Error: Network Error

cairinmisa commented 4 years ago

Fixed the issue. Mainly was issues with the configuration file in NGINX, as well as the HOST variables in the Frontend. Everything else is good! Just need someone to test it. Testing will just involve logging in and doing a few things on the website. (Current PROD build is old)

cairinmisa commented 4 years ago

Elijah could test it out - logging in and editing his details on the profile page. All looks good.