Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Configuring Ember CLI's dev server to respond to non-`text/html` requests

$
0
0

@samselikoff wrote:

We’re developing our Ember app locally and tweaking how it responds to Slack.

When we make a request from Slack to our app, Ember CLI doesn’t render a response – it returns a 404 instead. We tracked this down to the fact that Slack doesn’t include an Accept: text/html header in its request. (If we curl our app without the header, we see the same thing, but if we add that one header, it responds correctly).

We think it’s due to this line in the history-support middleware:

Is there a simple way to reconfigure this so that Ember CLI’s dev server can respond to requests that don’t have this header?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles