Schemaorg: schema.org/docs/jsonldcontext.jsonld is now being returned as application/octet-stream instead of application/ld+json

Created on 2 Jun 2020  路  3Comments  路  Source: schemaorg/schemaorg

$ curl -I https://schema.org/docs/jsonldcontext.jsonld
HTTP/2 200 
access-control-allow-credentials: true
access-control-allow-headers: Accept
access-control-allow-origin: \*
access-control-allow-methods: GET
date: Tue, 02 Jun 2020 10:32:02 GMT
expires: Tue, 02 Jun 2020 10:42:02 GMT
etag: "nFpXbg"
x-cloud-trace-context: ad08e0ade3623eba5d1d483500795e0d
content-type: application/octet-stream
server: Google Frontend
content-length: 155833
age: 18
cache-control: public, max-age=600
alt-svc: h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"

Related to #2578?

Most helpful comment

Fixed in deployment to schema.org 2020-06-03T12:00:00Z

All 3 comments

In addition to content-type, looks like the build system is doing something odd. Sources have access-control-allow-origin as "*", but all the static files have the invalid \*.
https://github.com/schemaorg/schemaorg/search?q=access-control-allow-origin&unscoped_q=access-control-allow-origin
This is causing browser problems with https://json-ld.org/playground/:

Access to XMLHttpRequest at 'https://schema.org/' from origin 'https://json-ld.org' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains the invalid value '\*'.

"*" appearing as * - Fixed in commit e2683d58c9d9f3625751b8bfc8b3eec9af569c3b
Mime_type - Fixed in commit 06fcd86f7fe887e160b3795e1bfb6478d8574977

Fixed in deployment to schema.org 2020-06-03T12:00:00Z

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexkreidler picture alexkreidler  路  5Comments

jaygray0919 picture jaygray0919  路  3Comments

Mailis picture Mailis  路  3Comments

danbri picture danbri  路  5Comments

VladimirAlexiev picture VladimirAlexiev  路  6Comments