add cors and change default portk