I
I
Islam Ibakaev2017-05-19 02:32:37
JavaScript
Islam Ibakaev, 2017-05-19 02:32:37

What to do if codepen is blocking openweathermap request?

Recently got acquainted with vuejs. I read something, looked at something and decided to do something. I figured out todo, now I want to muddy the weather widget .
I run for the weather on https://openweathermap.org/current
, everything would be fine, but I ran into a problem. It turns out that the codepen is blocking the request to the api, since I requested an insecure XMLHttpRequest endpoint
The problem is that getting the weather via https:// does not work (unfortunately):
workaround for my situation?
ps btw, you should see the city and region by now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-05-19
@devellopah

It's not the codepen that's blocking, it's your browser.
Possible ways out:
1. use another browser
2. use a service available via https
3. use another sandbox that can do without https
4. proxy the request through another server
You can try to come up with something else. but p2 is best.

The problem is that getting the weather via https:// does not work (unfortunately) :(
They want money for https .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question