Похожие чаты

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

3 просмотра

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

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

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

А кто-то пробовал, уезжая из Эстонии получить э-рез и продолжить вести предпринимательскую деятельность внутри Эстонии, используя свой OÜ?
Lalalashechki Lalala
62
At which price point will BCH, an ASIC mined coin, be succeptible to reorg attacks because of low hashrate? $10? $1? $0.1? $0.01?
Kishniev
18
Is Kadena onto something special? No one really knows. Good luck!
Bright Uncle Stephen EqualBet
40
зачем же переименовывать ? чтобы кол-во участников возросло или вдруг IBM от этого снова на свифте начнет кодить ? Я не понимаю что страшного в том что свифт гавно, если это т...
Oleh Nerzh
10
Гайз, кто-нибудь пробовал запустить probe-rs под камень, которого нет в probe-rs? Мб есть какой-нибудь пример у кого... Через target-gen попробовал сгенерировать chip-descript...
Максим Смирнов
2
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
здравствуйте. совершаю вот такую вещь: strcpy(line, (char)current_number); где current number — неподписанный шорт, line — массив чаров. ругань следующая: main.c:29:30: error...
Roberto's Ширгозиев
13
Hello VIC team, I had previously used the “wallet.tomochain.com” with a ledger connection. Unfortunately, the site is no longer accessible and the ledger account is not visibl...
carpe noctem
7
@MrMiscipitlick А можешь макрос написать, который будет вычислять смещение относительно переданных меток? Просто .label1-.label2, и вернуть значение.
КТ315
35
А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
Карта сайта