XmlHttpRequest not working with 2987

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

XmlHttpRequest not working with 2987

Postby Meghavi » Wed Jul 19, 2017 8:51 am

Hi,

We were having a synchronous XmlHttpRequest from Javascript to a dummy url eg. http://dummy.test.com and having a handler defined for dummy.test.com to handle any requests coming from JS to the domain.

this was working fine with branch 2171, but after we moved to 2987, i keep getting "Failed to Load Resource" error.

Has anything changed since 2171 or do I need to handle something more for the requesthandler to get called. Now XmlHttpRequest.send is failing so the handler never gets called.

Thanks,
Meghavi
Meghavi
Techie
 
Posts: 29
Joined: Fri Sep 20, 2013 4:48 am

Re: XmlHttpRequest not working with 2987

Postby magreenblatt » Wed Jul 19, 2017 10:49 am

What is the origin URL for the request? Is your handler being called in C++ code? If you aren't already using the "override" keyword on methods I suggest you add it to catch any instances where method signatures have changed.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: XmlHttpRequest not working with 2987

Postby Meghavi » Thu Jul 20, 2017 6:27 am

My origin url is https://smart.abc.com...its a different domain but in the response i am adding "Access-Control-Allow-Origin", "*" in the header, but the request does not even reach the handler.
Its a c# code and i have override added.

With the same code, 2171 everything works fine, just that i had to use https scheme for the dummy url ie https://dummy.test.com if the origin scheme was https.
But somehow with 2987 branch it does not work.

Thanks
Meghavi
Techie
 
Posts: 29
Joined: Fri Sep 20, 2013 4:48 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 55 guests