Skip to content

This is a MERN stack TodoApp full-stack web application. The backend is deployed on AWS Elastic Beanstalk, and the frontend is deployed on Netlify.

Notifications You must be signed in to change notification settings

MayHyeyeonKim/TodoApp-FE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To-Do List Application

Frontend Setup

  1. Initial Setup
    • Set up npm
    • Use React

Prerequisites

  • Node.js
  • npm

Register & Login

https://todomayster.netlify.app/register
https://todomayster.netlify.app/login

Error Encountered

Mixed Content Error

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.

solution

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

About

This is a MERN stack TodoApp full-stack web application. The backend is deployed on AWS Elastic Beanstalk, and the frontend is deployed on Netlify.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published