php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67602 Font-Loading depends on subdomain "www"
Submitted: 2014-07-10 09:05 UTC Modified: 2017-07-24 21:25 UTC
Votes:4
Avg. Score:3.5 ± 1.1
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:2 (50.0%)
From: cicer0 at arcor dot de Assigned: tyrael (profile)
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: OSX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cicer0 at arcor dot de
New email:
PHP Version: OS:

 

 [2014-07-10 09:05 UTC] cicer0 at arcor dot de
Description:
------------
While reading about different methods, I noticed by switching through two open tabs, that the fonts/typefaces differed. 

php.net-Admins don't allow cross-font-loading. It is only allowed for "www.php.net".

Message from the console:
2014-07-10 10:57:09.646 Font from origin 'http://www.php.net' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://php.net' is therefore not allowed access. 

Possible solutions:
1) allow CORS for "php.net" 
or (maybe better - regarding 'seo'/'consistency')
2) force clients to the "www.php.net" domain

As inspiration or just as informative backup:
https://github.com/h5bp/server-configs-nginx

Cheers:S



Expected result:
----------------
Same fonts on both domains.

Actual result:
--------------
Different fonts on both domains.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-10 11:33 UTC] tyrael@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: tyrael
 [2014-08-15 03:17 UTC] git at rvapps dot org
www.php.net is redirecting to php.net. Bug can be closed.
 [2015-11-08 19:30 UTC] imsadhappy at gmail dot com
Vote up this issue. A seemingly minor bug that completely breaks the php.net completely if accessed from www.php.net. In short: no fonts on www.php.net (too bad I can't add printscreen here).

Mind, this results are served from google serp. Better glue www.php.net with php.net and make 301 redirect to php.net (or vice versa, but then first - fix CORS for fonts). Google now has two versions of each php.net page in its serp: one with php.net/ other with www.php.net/ with the later one - broken.
 [2017-07-24 21:25 UTC] colinodell@php.net
-Status: Assigned +Status: Closed
 [2017-07-24 21:25 UTC] colinodell@php.net
www.php.net is redirecting to php.net where the issue does not exist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC