Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Getting CORS error-No 'Access-Control-Allow-Origin' header is present
#2

Cross-Origin Resource Sharing (CORS)

I was get errors  on fonts and had to add this to the .htaccess file.

Code:
# Add Font Types
AddType application/vnd.ms-fontobject .eot
AddType font/truetype .ttf
AddType font/opentype .otf
AddType font/opentype .woff
AddType font/opentype .woff2
AddType image/svg+xml .svg .svgz

<FilesMatch ".(eot|ttf|otf|woff|woff2|svg|svgz)">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Getting CORS error-No 'Access-Control-Allow-Origin' header is present on the request - by InsiteFX - 07-20-2018, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB