Aha,
different environment, but fundamentally the same problem.
You just cannot load a resource in a browser from a different origin than
where your script came from - except by a <script>-tag (JSONP), but that is
not actually supported by Sahana.
You have three options:
1) you load your Vue-app from Sahana
2) you customise your Sahana instance to allow this via a Access-Control-
Allow-Origin header (this is not implemented by default for obvious reasons)
3) you implement a server-side back-end to your Vue app that loads the data
via web services
The most logical approach is (1) - just make your Vue app the index.html of
your Sahana template. Then Sahana is indeed the back-end to your app.
If you really just want to implement a Vue-based front-end to Sahana, then I
would go for (1): create a template, add your view app as views/index.html and
implement a controllers.py to deliver this view for the default/index
controller. Relatively easy thing to do, and endlessly extensible.
What you do with the standalone HTML document is though to create a separate
app, and if that is what you intend to do, you must go for (2) or even (3).
Dominic
> --
> You received this message because you are subscribed to the Google Groups
> "Sahana-Eden" group. To unsubscribe from this group and stop receiving
> emails from it, send an email to
sahana-eden...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sahana-eden/494b4866-ddd1-4d52-8c4f-4fd64
> 524d515n%
40googlegroups.com.