-
Notifications
You must be signed in to change notification settings - Fork 48
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
Difference POSTMAN and Javascript sending header #137
Comments
Hi faruk, This doesn't sound like a problem in restup to me. Can you provide me with a test case where restup doesn't do something that it should? Jark |
Hello Jark, |
Hi Faruk, Where is the JavaScript hosted? If the domain of where restup is running is different to the domain that you are sending in the request from (like localhost or some external site), you'll need to take cors into account. From reading this: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch, it seems you will need to set And you'll need to (most likely) set I would compare the request from Post man and the request you're sending yourself using the chrome dev tools and see where the difference lies. Hope the above helps, I don't have time right now to set up a test case using restup, but will have a bit more time later this week if the above is not helpful to you. Regards, Jark |
Hello,
When I add header using Postman everything goes fine, but when I'm using javascript(fetch) I don't get added header on server side after request is handled. What am I missing?
The text was updated successfully, but these errors were encountered: