<div dir="ltr"><div style>Hi, new here...</div><div><br></div>I am able to use the web API from my browser app just fine when the URL for tahoe is the "same origin" as my app.<div><br></div><div style>I would like to be able to use my tahoe server in a "cross origin" [1] way, i.e. no matter what host my app is launched from, I'd like it to use any tahoe server so configured for cross-origin requests.</div>
<div style><br></div><div style>Has anyone implemented this?</div><div style><br></div><div style>Looking at:</div><div style><br></div><div style><a href="https://msoulier.wordpress.com/2010/06/05/cross-origin-requests-in-twisted/">https://msoulier.wordpress.com/2010/06/05/cross-origin-requests-in-twisted/</a><br>
</div><div style><br></div><div style>...I can see how to do this with twisted.</div><div style><br></div><div style>In the tahoe source it looks like the appropriate request renderers in allmydata/web would need:</div><div style>
<br></div><div style>1. to be modified to include the response headers</div><div style>2. a new render_OPTIONS method to satisfy CORS "preflight" requests.</div><div style><br></div><div style>Thoughts?</div><div style>
<br></div></div>