Re: [PHP-DEV] Re: Access-Control-Allow-Origin header in CLI server

2013-07-05 Thread Matthew Leverton
On Fri, Jul 5, 2013 at 5:48 PM, Daniel Lowrey wrote: > This is not the sort of thing that belongs in an HTTP server by > default. It's a one-off header that some users may elect to send but > the vast majority will not. > Of course I agree if you were speaking about a production web server. -- Ma

[PHP-DEV] Re: Access-Control-Allow-Origin header in CLI server

2013-07-05 Thread Daniel Lowrey
This is not the sort of thing that belongs in an HTTP server by default. It's a one-off header that some users may elect to send but the vast majority will not. If you need to simulate the feature of an third-party server mod/plugin you should manually make a `header('Access-Control-Allow-Origin: .

[PHP-DEV] Access-Control-Allow-Origin header in CLI server

2013-07-05 Thread Matthew Leverton
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