{"action":"created","issue":{"url":"https://api.github.com/repos/Varying-Vagrant-Vagrants/VVV/issues/681","labels_url":"https://api.github.com/repos/Varying-Vagrant-Vagrants/VVV/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/Varying-Vagrant-Vagrants/VVV/issues/681/comments","events_url":"https://api.github.com/repos/Varying-Vagrant-Vagrants/VVV/issues/681/events","html_url":"https://github.com/Varying-Vagrant-Vagrants/VVV/issues/681","id":92521356,"number":681,"title":"Font from origin domain.dev has been blocked...  (CORS and browsersync)","user":{"login":"jb510","id":801241,"avatar_url":"https://avatars.githubusercontent.com/u/801241?v=3","gravatar_id":"","url":"https://api.github.com/users/jb510","html_url":"https://github.com/jb510","followers_url":"https://api.github.com/users/jb510/followers","following_url":"https://api.github.com/users/jb510/following{/other_user}","gists_url":"https://api.github.com/users/jb510/gists{/gist_id}","starred_url":"https://api.github.com/users/jb510/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb510/subscriptions","organizations_url":"https://api.github.com/users/jb510/orgs","repos_url":"https://api.github.com/users/jb510/repos","events_url":"https://api.github.com/users/jb510/events{/privacy}","received_events_url":"https://api.github.com/users/jb510/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T01:21:03Z","updated_at":"2015-07-05T23:12:29Z","closed_at":null,"body":"Browersync (run via gulp) is using localhost:3000 which works great except for Fonts and SVGs hover trigger cross site scripting protection.\r\n```\r\nFont from origin 'http://sitename.dev' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.\r\n```\r\nThe browser URL is localhost:3000 for gulp-browsersync, but the XML assets are getting loaded from http://sitename.dev/ I get, that just have no idea how to get it working.\r\n\r\nI thought this should work: https://gist.github.com/Stanback/7145487 and tried adding to nginx-wp-common.conf and alternatively sitename.conf.  Neither worked however.\r\n\r\nMaybe I'm going about this all wrong?  Either advise on how to allow localhost:3000 to load from *.dev, or an alternative way of using browsersync would be appreciated here."},"comment":{"url":"https://api.github.com/repos/Varying-Vagrant-Vagrants/VVV/issues/comments/118675222","html_url":"https://github.com/Varying-Vagrant-Vagrants/VVV/issues/681#issuecomment-118675222","issue_url":"https://api.github.com/repos/Varying-Vagrant-Vagrants/VVV/issues/681","id":118675222,"user":{"login":"jb510","id":801241,"avatar_url":"https://avatars.githubusercontent.com/u/801241?v=3","gravatar_id":"","url":"https://api.github.com/users/jb510","html_url":"https://github.com/jb510","followers_url":"https://api.github.com/users/jb510/followers","following_url":"https://api.github.com/users/jb510/following{/other_user}","gists_url":"https://api.github.com/users/jb510/gists{/gist_id}","starred_url":"https://api.github.com/users/jb510/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb510/subscriptions","organizations_url":"https://api.github.com/users/jb510/orgs","repos_url":"https://api.github.com/users/jb510/repos","events_url":"https://api.github.com/users/jb510/events{/privacy}","received_events_url":"https://api.github.com/users/jb510/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T23:12:29Z","updated_at":"2015-07-05T23:12:29Z","body":"After much trial and error I got this working, I'm not really happy with the way it's working, maybe someone can still clarify or suggest alternatives.\r\n\r\nto: /etc/nginx/nginx-wp-common.conf\r\nafter the first location block I added:\r\n```\r\nlocation ~* \\.(eot|ttf|woff|svg)$ {\r\n    add_header Access-Control-Allow-Origin *;\r\n}\r\n```\r\nThis _is_ the file referenced by the individual conf files:\r\n/srv/config/nginx-config/sites/{site_name}.conf\r\n\r\nConfusion:\r\nThere is a file adjacent to the individual conf files here:\r\n/srv/config/nginx-config/nginx-wp-config.conf which apparently does nothing.\r\n\r\nIs deliberate or a bug?\r\n"}}