I want to add below to Nginx, should I add it via ISPconfig nginx directive for the domain vhost? add_header Access-Control-Allow-Origin "https://abc123.com"; thanks
I added below codes to vhost via nginx directive based on this post: https://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx I am running ubuntu, but not working. location ~* \.(eot|ttf|woff|woff2)$ { add_header Access-Control-Allow-Origin *; }
That is basically what I said above. You may want to try Ondrej Sury nginx package instead of Ubuntu package which may be compiled with it but do check first because I am not really sure about it.