Replies: 4 comments
-
This is likely a usage issue, and if I had to guess based on “Load Failed” being a very ambiguous error, it's indeed likely to be a CORS issue. Note that I wouldn't recommend a
I'm unsure why To get back to the original issue, since there's no reproduction here I can actually look at, if you check this with a different browser, or check the console in Safari, you'll likely get more information about the CORS issue, since the details of this issue are withheld from the JS runtime error. If I had to guess I'll leave this open as an issue for now, but will convert this into a discussion, as needed, if we have more of an idea what you're dealing with and the conversation here goes on ✌️ |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response. I will try to try use your suggestions tomorrow and give my feedback on this. |
Beta Was this translation helpful? Give feedback.
-
@kitten I'm using fetch wrapper to access http response in order to get header that is generated on the server.
and then later provide it in the request header. Could you provide an example how to properly get the response header? Thanks |
Beta Was this translation helpful? Give feedback.
-
Fair enough. Basically, I would've expected this to either be handled using cookies or a proper auth mechanism. I'd assume that the session you're creating is ephemeral and cookie-like though. Ultimately, I have no opinions and quarrels about how you'd want to implement thi. I'd just note that I don't find using random headers on a GraphQL response to be particularly idiomatic if it represents auth-like or other state/inputs. If you do decide to create a To keep this on topic though, I'll convert this to a discussion, since I do still think the original issue is most likely a CORS issue (making this more of a candidate for a QnA thread) ✌️ |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The application, built using Next.js version 13.5 and utilizing the App router with URQL following this tutorial is encountering errors specifically on Safari (both desktop and mobile) and Chrome on iPhones.
Network requests are consistently failing when the application attempts to make them. This issue is reproducible on mobile devices, including Safari on both desktop and mobile, as well as Chrome on iPhones.
This is my URQL wrapper:
Here is result console:
And here is response in network:
We were trying to change CORS settings on the server and make it so it will handle from every domain but it does not help.
Thanks for help in advance.
Reproduction
Reproduction example is in the description
Urql version
"@urql/next": "^1.1.0",
"urql": "^4.0.6",
Validations
Beta Was this translation helpful? Give feedback.
All reactions