got it sorta functioning!
Working before adding cors support