Category / Server Admin

2

Local “Lightning” first impressions

Local “Lightning” is the latest iteration of Flywheel’s popular local development environment. Local is a suite of web server components that allows you to run PHP applications on your computer – a vast improvement on the bad-old-days when we had to FTP files to a remote server to test our work. Shudder.

Flywheel is a WordPress hosting provider so Local is aimed at WordPress developers, but can theoretically be used for any PHP application regardless of where it will be hosted.

Local site
Continue reading

0

Fixing CORS font errors on a Runcloud server

If you’ve ever needed to serve fonts from a web server to a remote application, then you’ve probably run into Cross-Origin Resource Sharing (CORS) errors. When you view a web page that is attempting load fonts from your server, your browser console displays an error message similar to this:

Access to https://my-server.com/font.woff from origin https://remote-server has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the required resource.

The problem can be fixed by adding an Access-Control-Allow-Origin header to the font file, which allows access from the remote application.
Continue reading