Closed acnebs closed 6 months ago
This is likely being caused by RunJS's CORS defeating solution. I'll take a look into this soon.
Any update on this? I'd still like to use RunJS for testing web requests but this is a blocker for me.
I have a fix ready for the next release. This should be coming in a couple of months.
@acnebs this is now resolved in the latest version of RunJS.
Can confirm that it is working for me, thanks for getting that fixed!
Hi, I'm seeing some very strange behavior whenever I try to make an API call from RunJS. Namely, all requests show a 200 status code, even if the server is sending something else. Here is some example code:
As you can see, I haven't actually specified an API key. The HTTP response code for this when I run it in Postman or my browser is 401, as you'd expect. However when I run this code in RunJS, the response code is
200
(and thecatch
is obviously never run). Is this known behavior? Struggling to write some network code with this issue. I've tried this both with the built-infetch
but also with theaxios
library and the problem is present regardless.