سؤال

I am getting errors related to CORS and ACAO. Working on html5 responsive website tutorial and just added the basic files which are needed to create the website as described in tut. Here are the screenshots.

enter image description here enter image description here

هل كانت مفيدة؟

المحلول 2

Solution to problem # 1 First issue of CORS was resolved by using httml server locally as suggested by @destroy.

Solution to problem #2 Just add prefetch after stylesheet to rel.

<link title="fonts" href="http://fonts.googleapis.com/..." rel="stylesheet prefetch" type="text/css" />

source : http://www.raymonschouwenaar.nl/google-webfont-issue-xmlhttprequest-cannot-load/

نصائح أخرى

When you test your site, open it using the http protocol, don't open it in file://.

This means you must have a local http server to test.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top