tried to add cors
chnaged to connect, cors