Access-Control-Allow-Origin header in CLI server
| From: | Matthew Leverton | Date: | Fri, 05 Jul 2013 19:09:26 +0000 |
| Subject: | Access-Control-Allow-Origin header in CLI server | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-68069@lists.php.net to get a copy of this message | ||
Hello,
I commonly use PHP's built-in CLI server for development, using two
running instances on two different ports, one for dynamic PHP content
and the other for static content.
But because PHP does not send the Access-Control-Allow-Origin header,
Firefox will not load custom web fonts. See
http://www.red-team-design.com/firefox-doesnt-allow-cross-domain-fonts-by-default
The attached patch unconditionally sets it for all static files.
Should I submit a bug report, or is this email sufficient to get
somebody to look at it?
--
Matthew Leverton