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(&quot;
>> https://www.mysite.com/mycontroller/myfunc.load?pc=YGYzlEh6&amp;_signature=607e035a239d88bd3ab8652814ceff2a9cab92b5&quot<https://www.mysite.com/mycontroller/myfunc.load?pc=YGYzlEh6&_signature=607e035a239d88bd3ab8652814ceff2a9cab92b5&quot>;,
>>  
>> &quot;target-div&quot;); }" 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/mycontroller/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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to