- Initial Setup
- Set up npm
- Use React
- Node.js
- npm
https://todomayster.netlify.app/register
https://todomayster.netlify.app/login
I encountered a mixed content error:
xhr.js:244 Mixed Content: The page at 'https://todomayster.netlify.app/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://todo-mayster.us-east-2.elasticbeanstalk.com/api/tasks'. This request has been blocked; the content must be served over HTTPS.
The error occurred because the application was trying to make requests over HTTP from an HTTPS page. To resolve this issue, I created a proxy to handle the communication between HTTPS and HTTP endpoints. This ensures that the content is served over HTTPS, allowing secure communication between the frontend and backend.
"proxy": "https://todomayster.netlify.app",
In the Netlify configuration, I created a _redirects file in the public directory with the following content:
/api/* http://todo-mayster.us-east-2.elasticbeanstalk.com/api/:splat 200