You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by David Beer <da...@gmail.com> on 2017/01/25 20:58:07 UTC
Ajax Error When using File Upload
Hi All
I have panel which contains a form for uploading a file
using BootstrapFileInput. When I upload the file all is correctly uploaded
but I receive this error in Ajax Debug console.
*ERROR: *
Cannot read Ajax response for multipart form submit: SecurityError:
Blocked a frame with origin "
http://localhost:8080" from accessing a cross-origin frame.
*ERROR: *
Wicket.Ajax.Call.failure: Error while parsing response: No XML
response in the IFrame document
I am bit stuck on this one, not sure if this a wicket issue or a spring
security issue.
Any pointers would be helpful.
Thanks
Re: Ajax Error When using File Upload
Posted by David Beer <da...@gmail.com>.
Hi Martin
Thanks for confirming have managed to enable the correct security settings
all is working again.
Thanks
David
On 25 January 2017 at 21:17, Martin Grigorov <mg...@apache.org> wrote:
> Hi David,
>
> I think it is Spring Security.
> Check that the value of X-Frame-Options response header is SAMEORIGIN
>
> For more info see
> https://peteris.rocks/blog/exotic-http-headers/#x-frame-options
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Wed, Jan 25, 2017 at 9:58 PM, David Beer <da...@gmail.com>
> wrote:
>
> > Hi All
> >
> > I have panel which contains a form for uploading a file
> > using BootstrapFileInput. When I upload the file all is correctly
> uploaded
> > but I receive this error in Ajax Debug console.
> >
> > *ERROR: *
> > Cannot read Ajax response for multipart form submit: SecurityError:
> > Blocked a frame with origin "
> > http://localhost:8080" from accessing a cross-origin frame.
> > *ERROR: *
> > Wicket.Ajax.Call.failure: Error while parsing response: No XML
> > response in the IFrame document
> >
> > I am bit stuck on this one, not sure if this a wicket issue or a spring
> > security issue.
> >
> > Any pointers would be helpful.
> >
> > Thanks
> >
>
Re: Ajax Error When using File Upload
Posted by Martin Grigorov <mg...@apache.org>.
Hi David,
I think it is Spring Security.
Check that the value of X-Frame-Options response header is SAMEORIGIN
For more info see
https://peteris.rocks/blog/exotic-http-headers/#x-frame-options
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Wed, Jan 25, 2017 at 9:58 PM, David Beer <da...@gmail.com> wrote:
> Hi All
>
> I have panel which contains a form for uploading a file
> using BootstrapFileInput. When I upload the file all is correctly uploaded
> but I receive this error in Ajax Debug console.
>
> *ERROR: *
> Cannot read Ajax response for multipart form submit: SecurityError:
> Blocked a frame with origin "
> http://localhost:8080" from accessing a cross-origin frame.
> *ERROR: *
> Wicket.Ajax.Call.failure: Error while parsing response: No XML
> response in the IFrame document
>
> I am bit stuck on this one, not sure if this a wicket issue or a spring
> security issue.
>
> Any pointers would be helpful.
>
> Thanks
>