Code base from electron app is not working fully on my python webserver

I have followed a tutorial to make my first real project with electron, it is a to-do list app. I want the app to work over the http protocol as well. I ran the code over the file:/// protocol and everything worked perfectly as it did with electron. I made a quick python webserver that served index.html however now the code no longer works. More specifically the add task button no longer works. I will be including the repository that contains my code for more context.
repo: https://gitlab.com/Breadleaf/todo-list-electron