You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, not sure what I am doing wrong; isn't this example (representing this one) supposed to work? It also happens with compact and probably also other algorithms. Flatten works for me. Is this access really needed? How does the playground avoid it? The playground seems to use version 8.3.1, so is this example. Is there a configuration option I missed? I tried them without success so far. I also do not quite understand their meaning in every case. Furthermore, I also tried to set the Origin request header (attached below) manually without success so far, but I wouldn't know how to ask jsonld.js to set it in any case.
The playground and HTML examples work for me. Will need more details on what's not working to help.
As far as how they work:
The playground uses a custom documentLoader option, which has special handling for http://schema.org/ to rewrite it to https to avoid browser security restrictions.
If you want to handle requests yourself, and do any special header processing, you'll need to use (or modify) a documentLoader.
The HTML doc works when loaded from a test http server (python3 -m http.server). If you loaded from a https server you would need to use a documentLoader to handle the http URLs as https or similar such fixes.)
In both cases, when loading http[s]://schema.org/, they use a Link header to get processors to load JSON-LD:
In my network traffic on both cases, I see the schema.org request and then the load of the link header URL. (Though maybe with some internal browser caching related changes.)
Hi, not sure what I am doing wrong; isn't this example (representing this one) supposed to work? It also happens with compact and probably also other algorithms. Flatten works for me. Is this access really needed? How does the playground avoid it? The playground seems to use version 8.3.1, so is this example. Is there a configuration option I missed? I tried them without success so far. I also do not quite understand their meaning in every case. Furthermore, I also tried to set the Origin request header (attached below) manually without success so far, but I wouldn't know how to ask jsonld.js to set it in any case.
(probably related to #451 somehow?)
Resulting request headers:
Resulting response headers:
No response body.
The text was updated successfully, but these errors were encountered: