Project

General

Profile

Bug #4034

File Open Dialog: WidgetSet mode and Cross Origin requests

Added by Prasad Dixit over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
05/02/2015
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I have a Wt widget which is running on port 8080. I embedded it as a widget set in a page as shown below. The widget display and works perfectly fine (thank you!).

_

/div>

_

The bat file to start wt application looks like this:

_

REM Starts Wt server

set PATH=%~p0;PATH

set OLDPWD=CD

\"~p0\MyWtApp.exe\" ---docroot . ---http-port 8080 ---http-addr 0.0.0.0* ---config Config/wt_config.xml

_

The problem is I use FileUploadDialog to let users upload local file(s) and I get following error in widget set mode when the dialog is invoked.

_

Uncaught SecurityError: Blocked a frame with origin "http://localhost:8080" from accessing a frame with origin "http://localhost". Protocols, domains, and ports must match.

_

It works fine when Wt application is loaded in normal mode (ie; as a full pae application).

How can I fix it?

Thanks in advance!

-Prasad Dixit

Also available in: Atom PDF