NEWS

XmlHttpRequest

Edit:

Answer is :

git diff config.xml 
diff --git a/config.xml b/config.xml
index 98b3a9a..f4e0c11 100644
--- a/config.xml
+++ b/config.xml
@@ -44,5 +44,6 @@
        <feature name="http://tizen.org/api/time.read" required="true"/>  
        <feature name="http://tizen.org/api/time.write" required="true"/>  
        <feature name="http://tizen.org/api/tizen" required="true"/>  
-       <name>transig</name>
+       <name>transig</name>  
+       <access origin="*" subdomains="true"/>
 </widget>

http://rzr.online.fr/q/html5# Hey #TiZen do you know how to perform a #CORS / #XmlHttpRequest through WebApp SDK ( using “file:” origin )?

How to use XmlHttpRequest from local file and prevent Origin null is not allowed by Access-Control-Allow-Origin. ?

I am in the process of creating a tizen app , and I want to perform a http query from my app , but it looks this is unsecure …

This action seems very basic, so I might have miss something ?

I can explain further and provide a sample code if needed

More to come later :

I will provide a sample code if needed …

XMLHttpRequest cannot load $URL. Origin null is not allowed by Access-Control-Allow-Origin.

WorkAround:

  • I guess running a local webserver would unblock this null's Origin restriction…
  • ifames hacks ? donno if it it possible or not , anyway it is ugly
  • tunning browser parms , ie for chromium ”–allow-file-access-from-files” or MozillA settings

FeedBack WelCome:

Some hints :

if (origin != null) {
resp.setHeader("Access-Control-Allow-Origin", origin);
} else {
resp.setHeader("Access-Control-Allow-Origin", "*");
}

API

CANVAS

AUDIO / MULTIMEDIA

MULTIMEDIA

COMMUNICATION

MISC

DOCUMENTATION

MisC

Platform

HTML5

PhoneGap

PrograM / LearN

ToDo : EditoR

ToDo : TerminaL

SOFTWARE

DEMOS

WEB

UI

WS

MISC

MORE

@TaG: JavaScript html javascript tizen EdiT EditoR RedaK TiZen CapturE WebGl

<iframe width="560" height="315" src="http://www.youtube-nocookie.com/embed/RkXbWc3BI78" frameborder="0" allowfullscreen></iframe>

www.developer-tech.com_media_html5_600x4782.jpg

<video src="https://files.mastodon.social/media_attachments/files/025/957/465/original/779aec95ea1944cb.mp4" loop="true" autoplay="true" />

html5.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki