Is it possible to establish the access-control-permission-origin-ability in Dreamhost?

You just need confirmation for this: Firefox is currently not well suited for selecting custom fonts through a subdomain via a font-face tag. Other browsers do this without a problem.

A little research came up saying that I needed to install Access-Control-Allow-Origin, as shown in the link here: http://pastie.org/653265

Essentially, I have my blog at kaushikgopal.com/blog, and I tried to access the fonts that are available on font.kaushikgopal.com on this blog. I tried to change the same in the .htaccess file but could not solve the problem. (I placed the .htaccess file in the font subdomain folder and directly pasted the code from the above link).

I sent a ticket to dreamhost asking for help, and they were useful in a clear statement: "We do not support Access-Control-Allow-Origin on shared hosting servers."

So I did not go on a subdomain route for fonts. But I'm a little curious, has anyone tried this (with a dreamhost hosting account would be helpful)? I just want to confirm what the tech support guy suggested, and there is no other way.

Thank.

Another good link explicitly indicating a problem: http://www.stevesouders.com/tests/font-face/xdomain.php

+3
source share
1 answer

I just tried it and it works (on Dreamhost). For example, /mysite/pub/.htaccess:

Headline

Access-Control-Allow-Origin *

. http://42at.com/lab/Thumboard/bookmarklet.html. ajax , html.

+3

Source: https://habr.com/ru/post/1736206/


All Articles