https://groups.google.com/forum/#!topic/web2py/0vqUFdr0cjg
On Tue, Feb 11, 2014 at 7:52 AM, Umed <zarrh...@gmail.com> wrote: > why didnt you specify what was a solution > > > On Wednesday, December 18, 2013 4:05:43 PM UTC+5, weheh wrote: >> >> Looks like I got it working. The Apache config file wasn't complete, so >> once I found that issue, the CORS started to function properly. Thanks >> again for your responses. >> >> >> On Monday, December 16, 2013 11:16:05 PM UTC+8, Marin Pranjić wrote: >>> >>> Well, as I said, try your own jquery.ajax call. >>> >>> If it works, then CORS is enabled but component load is failing. >>> If it doesn't work, then you didn't enable CORS correctly. >>> >>> You should also try $.ajax({crossDomain: true, ...}); >>> JQuery should add it automatically but maybe it's not detecting it >>> properly. >>> >>> >>> On Mon, Dec 16, 2013 at 4:12 PM, weheh <richard...@verizon.net> wrote: >>> >>>> @Marin: Thanks for your suggestion. I believe that that is precisely >>>> what is causing this issue. The original call is an HTTP call. It's >>>> followed by an HTTPS that results in the error message. But still no idea >>>> how to get the https call to go through. >>>> >>>> >>>> On Monday, December 16, 2013 10:45:45 PM UTC+8, Marin Pranjić wrote: >>>> >>>>> @weheh can you try a custom jQuery.ajax cross domain call for >>>>> testing/debugging? (just load something from HTTP to HTTPS) >>>>> >>>>> On Mon, Dec 16, 2013 at 2:38 PM, weheh <richard...@verizon.net> wrote: >>>>> >>>>>> Hi Anthony, I added CORS stuff to my Apache httpd.conf as per this >>>>>> http://enable-cors.org/server_apache.html but I'm still getting the >>>>>> same error message. Any ideas about how to push through this? >>>>>> >>>>>> >>>>>> On Sunday, December 15, 2013 1:13:55 AM UTC+8, Anthony wrote: >>>>>>> >>>>>>> Is it in fact a cross-origin request, and have you set up CORS on >>>>>>> the server? >>>>>>> >>>>>>> On Saturday, December 14, 2013 10:39:25 AM UTC-5, weheh wrote: >>>>>>>> >>>>>>>> I've got a dialog that I pop open and on it is a button that makes >>>>>>>> a web2py_component call. The button code looks like this, after it's >>>>>>>> gone >>>>>>>> through the XML() helper and jquery UI. >>>>>>>> >>>>>>>> <button class="..." onclick="if (confirm('Read?')) { >>>>>>>> web2py_component("https://www.mysite.com/mycontroller/m >>>>>>>> yfunc.load?pc=YGYzlEh6&_signature=607e035a239d88bd3ab865 >>>>>>>> 2814ceff2a9cab92b5"<https://www.mysite.com/mycontroller/myfunc.load?pc=YGYzlEh6&_signature=607e035a239d88bd3ab8652814ceff2a9cab92b5">;, >>>>>>>> "target-div"); }" role="button" aria-disabled="false"> ... >>>>>>>> </button> >>>>>>>> >>>>>>>> The button works fine when I launch it from my development machine: >>>>>>>> http://127.0.0.1:8000/myapp/... But, when I migrate the code to >>>>>>>> the server and execute there, I get an error. >>>>>>>> >>>>>>>> Firebug reports the following: >>>>>>>> >>>>>>>> XMLHttpRequest cannot load https://www.mysite.com/mycontr >>>>>>>> oller/myfunc.load?pc=YGYzlEh6&_signature=<https://www.yakitome.com/store/execute.load?pc=HcfnI_pV&pid=7&qty=1&_signature=6c18eb4d880e19d463d85df3f9b02c97b5c8430e> >>>>>>>> 607e035a239d88bd3ab8652814ceff2a9cab92b5. The request was >>>>>>>> redirected to 'https://www.mysite.com/user/login.load?_next=/ >>>>>>>> mycontroller/myfunc.load%<https://www.yakitome.com/user/login.load?_next=/store/execute.load%3Fpc%3DHcfnI_pV%26pid%3D7%26qty%3D1> >>>>>>>> pc=YGYzlEh6<https://www.yakitome.com/store/execute.load?pc=HcfnI_pV&pid=7&qty=1&_signature=6c18eb4d880e19d463d85df3f9b02c97b5c8430e>', >>>>>>>> which is disallowed for cross-origin requests that require preflight. >>>>>>>> >>>>>>>> >>>>>>>> Anybody have any idea how to deal with this? >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>> Resources: >>>>>> - http://web2py.com >>>>>> - http://web2py.com/book (Documentation) >>>>>> - http://github.com/web2py/web2py (Source code) >>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "web2py-users" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to web2py+un...@googlegroups.com. >>>>>> >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> >>>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.