# Access-Control-Allow-Origin header in CLI server

- Thread: https://externals.io/message/68069
- Original archive: https://news-web.php.net/php.internals/68069
- Started by Matthew Leverton on 2013-07-05T19:09:26+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #68069 — Matthew Leverton — 2013-07-05T19:09:26+00:00

URL: https://externals.io/message/68069#68069

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
