-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cookie not found support #443
Comments
Under normal conditions, params are sent as (async/await XHR) HTTP requests. If there's any specific criteria for your server, you've to append that information either in params or headers as server request.
|
Thanks for your reply. |
Let me look into the issue and get back to you after a while. I think there's an option to use cookies with |
All right, waiting for your good news. |
Nuxt Axios module currently support credentials option only work when axios request to This is in the specification, not a bug. |
I'm reading that we can just set |
But isn't that only supposed to be working on requests sent to same origin? |
I just found something that may help us. |
If you can't see this pic, leave me a message.Cause I was limited on internet,and I can't see if it's uploaded. |
Can't see the image. |
Very appreciate for your patience and help. |
Got the mail. It seems like, a cookie is sent as a custom header along with the request. In PW, you can add custom Headers too. In Options section, navigate to Headers tab to add custom headers. But I wonder how you generated this custom header Here's a screenshot of how I added a custom header and generated cURL code snippet with PW. If you've limited internet access, no need to download the image, this is the generated cURL:
And here's your public Sharable link with above configuration: https://postwoman.io/?method=GET&url=https%3A%2F%2Freqres.in&path=%2Fapi%2Fusers&headers=%5B%7B%22key%22%3A%22cache-control%22,%22value%22%3A%22no-cache%22%7D,%7B%22key%22%3A%22postwoman-token%22,%22value%22%3A%22this_can_whatever_you_want%22%7D,%7B%22key%22%3A%22content-type%22,%22value%22%3A%22application%2Fjson%22%7D%5D&rawParams=%7B%7D Open this link to preload configs |
Emmm…… actually,I didn't add the postman-token. Everytime when I try to request, postman will generate a new postman-token. This is primarily used to bypass a bug in Chrome. If an XMLHttpRequest is pending and another request is sent with the same parameters then Chrome returns the same response for both of them. Sending a random token avoids this issue. This can also help you distinguish between request on the server side. |
Thanks! Will look into it Sooner or later, we're gonna have to implement this 😊 |
I think so.It will be better with your development. |
Just shipped API documentation feature 😄 |
Is there any option to set withCredentials from front side? or guide on where to set that option. |
Our server responsed cookie not found error.
But actually,with the same param postman worked.
I wonder know if I need to add some extra param when I use postwoman.
The text was updated successfully, but these errors were encountered: