Похожие чаты

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 ответов

42 просмотра

Loading http content from a https site?

Крепкий-Самовар Автор вопроса
Сосновая Зима
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:

Крепкий-Самовар Автор вопроса
Крепкий Самовар
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).

Крепкий-Самовар Автор вопроса

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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Мелодичный Сырник
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Фетровый Лингвист
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Настойчивый Кварк
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...
Льдистая Лужица
2
30500 за редактор? )
Замшевый Алхимик
47
а через ESC-код ?
Виноградная Притча
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...
Звенящий Циферблат
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Туманный Ларец
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Длинный Минерал
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Тягучая Ракушка
11
Карта сайта