Select Menu
Select Menu

MyBloggerTicks

ShoutMeLoud

Wisata

Culture

Transportasi Tradisional

Rumah Adat

Bali

Pantai

Seni Budaya

Kuliner

» » Solution to “Font from origin ‘http://cdn.domain.com’ has been blocked from loading by Cross-Origin Resource Sharing policy”


BloggBuzzer 00:23 0

Source : Solution to “Font from origin ‘http://cdn.domain.com’ has been blocked from loading by Cross-Origin Resource Sharing policy”
Published On : July 15, 2016 at 12:38PM
By : Collins Agbonghama

I recently discovered icon fonts on the website of my ProfilePress WordPress plugin weren’t displaying. On viewing my browser console, i saw the following error notice logged.

Font from origin ‘http://ift.tt/2a2RPBe; 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://profilepress’ is therefore not allowed access.

Apparently, the browser was blocking connection from profilepress.net to its cloudfront CDN because of the restriction of browser’s same origin policy whereby siteA cannot fetch content from siteB unless via Cross-Origin Resource Sharing (CORS) in which response from siteB include a Access-Control-Allow-Origin header granting permission to siteA.…



For More Go to : W3Guy – A Geek's Diary

«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply