flashbots-docs icon indicating copy to clipboard operation
flashbots-docs copied to clipboard

CORS NOT ACCEPTING LOCALHOST

Open on1force opened this issue 1 year ago • 0 comments

When I tried to do simulate with the ethers client, my request got blocked by cors on sepolia relay. I was using it on next.js.

Access to fetch at 'https://relay-sepolia.flashbots.net/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

on1force avatar Aug 15 '24 15:08 on1force