--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/9b9fa219-3038-4d61-9206-a5ab134f783e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've been trying to run it ... When you click on the button it does nothingBen DuncanDBA / Chief Software ArchitectMississippi State Supreme CourtElectronic Filing Division
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.
On Tuesday, June 4, 2019 at 3:16:12 PM UTC-7, Ben Duncan wrote:I've been trying to run it ... When you click on the button it does nothingBen DuncanDBA / Chief Software ArchitectMississippi State Supreme CourtElectronic Filing Division
When I replace the "ajax-info.txt" with a real URL (that is, one for a web2py function on my server, and which returns a txt file), I see the network access, including a response with HTTP status 303. For some reason (cookie management?) it doesn't work for me to login via a separate tab, and each time I click the button I get a different cookie. I've been poking at sending credentials, but I still get the 303 response and I apparently am not setting the Authorization header as I think I am, but only setting Access-Control-Request-Headers to "authorization". And there is also "allow origin" issues, because file://tmp/test.html comes from a different address than the server.
HTH
/dps
Try xhttp.withCredentials = true
Yes, file:// is even another protocol, so using http transport in this case is out of all standards. But it should work fine with regular web2py app (over http)
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/70288247-9e3b-4078-81e5-385ef4a4f67e%40googlegroups.com.
On Wed, Jun 5, 2019 at 5:30 AM Val K <valq...@gmail.com> wrote:
Yes, file:// is even another protocol, so using http transport in this case is out of all standards. But it should work fine with regular web2py app (over http)
--
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 web...@googlegroups.com.
Yes, file:// is even another protocol, so using http transport in this case is out of all standards. But it should work fine with regular web2py app (over http)
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ac268300-8ec7-4f4d-9d3b-9ffbe7f12f4f%40googlegroups.com.
Ok, moving it to static makes it work fine. It was in view/defaultAny IDEAS on what / why this works this way ?Thanks ...Ben DuncanDBA / Chief Software ArchitectMississippi State Supreme CourtElectronic Filing Division
On Wed, Jun 5, 2019 at 9:51 PM Dave S <snide...@gmail.com> wrote:
--
On Wednesday, June 5, 2019 at 12:47:51 PM UTC-7, Dave S wrote:
On Wednesday, June 5, 2019 at 3:30:46 AM UTC-7, Val K wrote:Yes, file:// is even another protocol, so using http transport in this case is out of all standards. But it should work fine with regular web2py app (over http)
Since I found a way to successfully demonstrate the javascript working, it is quite possible I will not ever pursue the file:// x-site issues. I've done OPTIONS handling in node.js before, and I think I can see how to do it in the front end (nginx), but I don't have a reason to pursue it at present.
/dps
Although looking through some of my long-open tabs, I see mcm's cors_origin decorator from October '16, and curiosity might provoke me.
-d
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 web...@googlegroups.com.