Hey guys, been a while since I was on here, but I have a question:
why isn't the "url" block working?
I tried putting in https://api.scratch.mit.edu/users/cybersteve547/ but it didnt work!
Does anyone know why?
It's because of cors policy. You'll have to use some cors proxy to get urls.
whats cors
Basically it’s a polocy that blocks almost all internet requests outside of the current url you are viewing
And while it is annoying, the internet would be absolute chaos without it
You’ll need an api key to acess most websites via the url block, that’s why we have the web services acess library
so how do i use the GET block though?
That’s for you to figure out
If you have a spefic use case in mind I may be able to help you get an api key
Ah, I’m not exactly sure about the scratch api but I’ll see what I can do
I misspoke earlier, you don’t need just an api key you also need to format the request correctly to comply with Cors, the way to do that is beyond me however
This works (for me now)
but no free CORS proxy tends to last very long
thx
im sorry, but this annoys the absolute flip out of me
the only reason i know how to use that block is experimenting with postman and headers and stuff, because i literally could not figure out how to use it.
If someone were to have just told me cough joecooldo cough how to use it originally, i would've saved hours of wasted work
excuse me?
In that context I was saying it as in they have to come up with usecases in projects, I wasn’t saying they had to figure out themselves
how do you us it?
i forgot who but i think it was you, i asked repeatedly how to use and no answer never given
oh
so its a bit confusing but i cant explain atm, but i will try to make a post how to use the advanced url block with headers and body and such later
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.