Languages

Menu
Sites
Language
How to resolve No 'Access-Control-Allow-Origin' header is present on the requested resource.

Hi,

How to resolve the problem with  access origin.

I want to access youtube video and i got following error.

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

 

 

 

 

Thanks and regards

Mohit Kumar

Responses

3 Replies
Marco Buettner

did you allow network access by config.xml? ;) 

mohit kumar

Hi,

Here is my config.xml

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/YourStoryAllLang" version="1.0.0" viewmodes="maximized">
    <access origin="*" subdomains="true"></access>
    <tizen:application id="UxRRw2v28O.YourStoryAllLang" package="UxRRw2v28O" required_version="2.3"/>
    <content src="English.html"/>
    <feature name="http://tizen.org/feature/screen.size.all"/>
    <icon src="logo.png" height="117" width="117"/>
    <name>YourStory</name>
    <tizen:privilege name="http://tizen.org/privilege/internet"/>
    <tizen:profile name="mobile"/>
    <tizen:setting context-menu="disable"/>
</widget>

 

 

Thanks and regards

Mohit Kumar

mohit kumar

Dear Marco Buettner,

  I have accessed youtube video in my application.There is a tab called "YSTV" in my application.Once you click you will see youtube video.

It work well with "SAMSUNG Z3" and TIZEN emulator.But it is not working with "SAMSUNG Z1" device.

It display error

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

 

Here is my code

https://github.com/mohittripathi/YourStory

 

Please help me

Thanks and regards

Mohit Kumar