Updated nginx conf to work fully
Missing s on substitution
Substitution was failing due to slashes in URL from cors_origin