M
M
M. Marshall2015-09-21 18:20:16
Android
M. Marshall, 2015-09-21 18:20:16

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

Hey 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!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
anyd3v, 2015-09-21
@anyd3v

You can hack ok's servers and delete header in code :)

D
Denis Ineshin, 2015-09-21
@IonDen

Don't use Ajax requests. Just push direct url to your video src.

M
M. Marshall, 2015-09-21
@Manel00

Can anybody give me many ideas? Thanks in advance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question