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
I'd like to be able to fetch URLs from a different domain, which means adding some headers to each request.
I've done this in two projects at this moment: openbesluitvorming and link-solid-boilerplate. In both, the code looks like this:
conststore=newRDFStore()conststoreOptions={report: handle,// This part is for setting CORS.api: newDataProcessor({requestInitGenerator: newRequestInitGenerator({credentials: "omit",csrfFieldName: "csrf-token",mode: "cors",xRequestedWith: "XMLHttpRequest"}),report: handle,
store,})};
it works, but it feel unintuitive, and passing a new RDFStore doesn't feel necessary.
When I change api to apiOpts, like so:
I'd like to be able to fetch URLs from a different domain, which means adding some headers to each request.
I've done this in two projects at this moment: openbesluitvorming and link-solid-boilerplate. In both, the code looks like this:
it works, but it feel unintuitive, and passing a new RDFStore doesn't feel necessary.
When I change
api
toapiOpts
, like so:The fetcher is looping, fetching the same thing over and over again.
The text was updated successfully, but these errors were encountered: