@Manel00

How to avoid Access-Control-Allow-Origin on android webview?

Hi everyone!

I'm trying to get some videos of ok.ru to show on my android webview (java) but there's a problem who is annoying me:

XMLHttpRequest cannot load m.ok.ru/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'ok.ru' is therefore not allowed access."

I need to avoid these kind of problems, because the links that I can get and show to video, are dynamical links, and they're changing constantly... How can I show ok.ru videos on my android webview? thanks in advance!
  • Вопрос задан
  • 1300 просмотров
Пригласить эксперта
Ответы на вопрос 3
anyd3v
@anyd3v
You can hack ok's servers and delete header in code :)
Ответ написан
IonDen
@IonDen
JavaScript developer. IonDen.com
Don't use Ajax requests. Just push direct url to your video src.
Ответ написан
@Manel00 Автор вопроса
Can anybody give me many ideas? Thanks in advance
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы