On SSH, logged in as root, do the following.
First, define your myVesta user and domain as a variable:
Code: Select all
USER='youruser'
DOMAIN='yourdomain.com'
Code: Select all
cd /home/$USER/conf/web
echo "add_header Access-Control-Allow-Origin '*';" > snginx.$DOMAIN.conf
ln -s snginx.$DOMAIN.conf nginx.$DOMAIN.conf
systemctl restart nginx