Closed whoabuddy closed 8 months ago
Might be an issue with the fetch implementation of this setup.
Can you try deleting the referrerPolicy
from getFetchOptions()
?
import { getFetchOptions } from "@stacks/network";
const opts = getFetchOptions();
delete opts.referrerPolicy;
I bet that'll work and will give it a test - have to finish up a few things first but will report back. That's awesome it's an option I didn't think it'd be so simple to fix!
Closing for now, reopen if needed.
What version of Stacks.js are you using?
latest, fresh install from npm
Describe the bug
I have a Cloudflare Worker setup as an API with Hono.js, code is here
I wanted to use
callReadOnlyFunction()
to fetch some contract data and verify something before returning a resource, but ran into an error: "The 'referrerPolicy' field on 'RequestInitializerDict' is not implemented." (full error below)The quick fix was to switch to micro-stacks and use
fetchReadOnlyFunction()
, but I wanted to report it anyway in case others have run into it.How to reproduce
This was the original code that caused an error, if more details are needed to reproduce I can push an example.
Expected behavior
I expected the fetch call to succeed and return data.
Additional context
None, please let me know if more info is needed!