question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

transitionTo under https

See original GitHub issue

@zion03 commented on Fri Apr 21 2017

I’m trying to transition fastboot under the https, it’s works with redirection to http version.

For example application.js route

export default Ember.Route.extend({
  model: function(param){
    this.transitionTo('login');
  }
});

request: https://domain.com --> http://domain.com:3001/login where 3001 fastboot port

How I can solve this problem?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
devdemicommented, Feb 13, 2019

@kratiahuja I have the same problem as @zion03 but middleware doesn’t help me. My fastboot works behind nginx on port 3443 and when any transitionTo called fastboot will transfer to domain.com:3443

Lines from my nginx config:

    location / {
        if ($http_x_forwarded_proto != 'https') {
            return 301 https://$host$request_uri;
        }
        #try_files @fastboot $uri $uri/ /index.html;
        resolver 8.8.8.8;
        proxy_pass https://$server_name:3443;
        proxy_redirect     off;

        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_set_header X-NginX-Proxy true;
    }

But any additional header can’t make fastboot doesn’t add the port to a hostname. I’d really appreciate for help with this problem.

0reactions
kratiahujacommented, Aug 9, 2017

Going to close this as you can redirect via a middleware. Please feel free to reopen if this doesn’t work for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Redirecting a transition to same route with different query ...
I'm seeing two weird bugs if doing a redirect to the same route with different queryParams in beforeModel hook: If the route is...
Read more >
W3C's planned transition to HTTPS stymied by legacy laggards
W3C's planned transition to HTTPS stymied by legacy laggards ... redirecting all requests received over http to https within a month or two....
Read more >
Transition to Adulthood
In transition planning, the IEP team considers areas such as postsecondary education or vocational training, employment, independent living, and community ...
Read more >
Transition to Kindergarten - ECLKC - HHS.gov
Before you begin, check out the Transition to Kindergarten: Resource Guide for an interactive catalogue of the resources below.
Read more >
DOE: Transition to Teaching - IN.gov
Transition to Teaching (T2T) programs are based on the premise that the candidate already has content knowledge in the licensing area.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found