Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 when using aliases & cors #30

Closed
ColonelBundy opened this issue Jan 7, 2018 · 2 comments
Closed

404 when using aliases & cors #30

ColonelBundy opened this issue Jan 7, 2018 · 2 comments
Labels

Comments

@ColonelBundy
Copy link

Problem

Browser sends a OPTIONS request to determine cors and when using something like:

aliases: {
  'POST login': 'v1.auth.login',
}

it won't work since OPTIONS request is not allowed. This will work, however:

aliases: {
  'OPTIONS login': 'v1.auth.login',
  'POST login': 'v1.auth.login',
}
@icebob
Copy link
Member

icebob commented Jan 7, 2018

Thanks. I need to reorder the processes in httpHandler. The aliases are processed sooner than CORS logic.

@icebob icebob added the bug label Jan 7, 2018
icebob added a commit that referenced this issue Jan 7, 2018
@icebob
Copy link
Member

icebob commented Jan 7, 2018

Released in 0.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants