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

How to use XmlHttpRequest from local file and prevent "Origin null is not allowed by Access-Control-Allow-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 : -- http://rzr.online.fr/q/html5
http://www.reddit.com/user/rzrfreefr
5 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

Hello,

I recommend the Official Tizen(TM) SDK Documentation for more details about application development process with step-by-step instructions including SDK basics.

Also, please refer to the Tizen* Legacy API Specifications and Tizen Device API: Tizen* documentation for technical resources.

Additionally, there is another software developer who posted a solution for a similar situation as yours while using Intel AppUp(R) Encapsulator 2.0 Alpha. Please check this thread.

You may contact the Tizen* Community for further assistance while developing your program targeted for Tizen operating system.

If you require more information, please let us know.

Marvin O.
Technical Support Team
Intel AppUp® Developer Program
Intel AppUp® center
*Other names and brands may be claimed as the property of others.

thx for answering I did figure out by myself, I needed to add some extra meta data to project ...

I will document this on my tizen page

https://wiki.tizen.org/wiki/User:Rzr

now I have to find a way to keep some http credentials somewhere ...

http://www.reddit.com/user/rzrfreefr

Hi rzr, my experience with credentials:

add withCredential = true to any xhr request, and make sure that your web server send Access-Control-Allow-Credentials: true header.

Also make sure that you have a valid domain in the Access-Control-Allow-Origin header filed. "*" will not work with credentials, and any cookie will be send back to the server.

Hi rzr, my experience with credentials:

add withCredential = true to any xhr request, and make sure that your web server send Access-Control-Allow-Credentials: true header.

Also make sure that you have a valid domain in the Access-Control-Allow-Origin header filed. "*" will not work with credentials, and any cookie will be send back to the server.

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi