Access-Control-Allow-Origin fonts (eot|ttf|woff|woff2) problem on Nginx

Fixing Nginx problem while serving fonts:

location ~* \.(eot|ttf|woff|woff2)$ {
    add_header Access-Control-Allow-Origin *;
}