Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use /_api and /_admin as default #37

Closed
caolan opened this Issue · 3 comments

3 participants

@caolan
Owner

Opening this ticket to discuss the effects this is likely to have on the various components that rely on separate origins. You can test it out on my branch of hoodie-app for now.

We're switching to this so we can provide a smooth experience on Linux and a consistent approach across platforms. I recommend still having the nice local-tld stuff for Mac so we have an app.dev domain, but sticking to app.dev/_api and app.dev/_admin so documentation and examples are cross-platform.

This currently causes some issues in hoodloader and probably pocket too (CC @gr2m @espy)

@gr2m
Owner

I'd also like to loop @janl into the discussion.

So current problem is that we benefit from different sessions that can exist among each other thanks to different subdomains. For example, hoodie uses api.appname.dev and hoodie.admin uses admin.api.appname.dev.

In order to allow access as different CouchDB users, I'll add an option to send basic auth headers with each request, that will need some time though. And I have to think more about it.

@janl
Owner

right, the problem is that on linux and windows setting up the nice subdomains is less than trivial / near impossible the way we’d need it.

@caolan
Owner

This debate now seems to be settled in favour of:

admin.app.dev/_api
app.dev/_api
@caolan caolan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.