added same origin in nginx config.