Похожие чаты

I have a React frontend on a PaaS. gives me

this error:
Blocked loading mixed active content “http://panelback:8000/alerts/all”

using its cli, the curl http://panelback:8000/alerts/all command works normally, but fetch("http://panelback:8000/alerts/all") in the app can't access it in the UI,

what can I do?

4 ответов

28 просмотров

Loading http content from a https site?

Ædel- Автор вопроса
Simen
Loading http content from a https site?

correct. but the fetch is called from the same network. it's just like how localhost is called via http. i tried fetching https before, it gave me another error. let me show that error (when i fetch with https) too:

Ædel- Автор вопроса
Ædel
correct. but the fetch is called from the same net...

yup, that one's a CORS error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://panelback:8000/alerts/all. (Reason: CORS request did not succeed). Status code: (null).

Ædel- Автор вопроса

solved this. reason was that they weren't on the same network (even though the PaaS support had told me before that they are!) so I couldn't use panelback like I use localhost on my own machine. I had to call the full address https://some.domain.panelback.com/api/endpoint

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта