JavaScript WebService

bjabja
edited February 2012 in Enyo 1.0
Hi,
I would like to port my webOS ENYO 1.0 app to browser-based app. I know that this app only works in chrome. I have the following problem:

Javascript Error:
XMLHttpRequest cannot load [URL1]. Origin [URL2] is not allowed by Access-Control-Allow-Origin.

What can I do?

I have renamed the index.html to index.php and add the following lines:
<?php
header('Access-Control-Allow-Origin: [URL2]');
header('Access-Control-Allow-Headers: X-Requested-With');
?>

It doesn't work. :-(

Thanks for help.

Regards
Björn

Comments

Sign In or Register to comment.