2 ms·
Nice. If you want to implement another feature: see the error response. My server returned 428, but I couldn't see the contents nor header, only a generic "prev
by tgv 4y ago
Nice. If you want to implement another feature: see the error response. My server returned 428, but I couldn't see the contents nor header, only a generic "preview".
- kermire 4y agoThat's very odd. Will look into this.
- tgv 4y agoAnd the Cookie header isn't sent? (using it on Firefox 106.1).
- kermire 4y agoI'm using the fetch API for making requests and fetch sadly forbids the Cookie header from getting passed. Will be looking into how I can bypass this.
- tgv 4y ago~~I think axios can. Its API is similar to fetch, except for the return status. You could also manipulate the cookies before and after transmission, but that might be messy when you hit the browser's cookie limits.~~ Scratch that. I wasn't thinking clearly. I ran the call from restfox.dev, and it's another domain, of course. You'd need to write your own http client to get around it.