I am developing a JavaFX application that is basically an illustrious webpage. This is a desktop application (it is not embedded in a web page) and it has a web view for the main user interface. The application itself serves exclusively to access Bluetooth devices using Bluecove, because it is not possible directly from JavaScript in a web browser.
The proof of concept works fine (I was able to call JavaScript code from Java and vice versa), but I have one additional requirement to call arbitrary web services / APIs from JavaScript, but this violates the same origin policy (similarly on Android: Allow remote calls ajax on Android Webview + jquery mobile phone ). Is this possible in JavaFX? Any tips?
PS: I am using JavaFX 2.2.
javascript same-origin-policy javafx cross-domain
petersaints
source share