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

serve in HTTPS mode #2671

Closed
kensodemann opened this issue Aug 18, 2017 · 4 comments
Closed

serve in HTTPS mode #2671

kensodemann opened this issue Aug 18, 2017 · 4 comments
Milestone

Comments

@kensodemann
Copy link
Member

From @Qvatra on August 18, 2017 12:26

Ionic version: (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x

I'm submitting a ... (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
not possible to serve locally in HTTPS mode. Its important because if remote host is SSL any secure cookies are lost when they come back to the non-SSL browser.

Expected behavior:
possibility to configure ionic to serve on HTTPS locally

Reproduction
What I'm trying to achieve in my app:

  1. I’m sending authentication request from my app to SSL server using ionic proxy.
  2. Server response contain sessionId in secure cookie.
  3. I’m sending another request that suppose to have this sessionId in requestHeader cookie.

In reality the last request doesn’t have sessionId in requestHeader cookie and that's why I get 401 ‘Unauthorized’. When I look at responseHeader cookie of the first request I see the following: set-cookie:PHPSESSID=5583u6dcq803qlm5mnnc79vua4i0hs10htoj1mavskhv0bdg8m31; path=/; secure; HttpOnly

My idea is to make ionic somehow run locally in secure mode so that this secure cookie would be passed through.

Copied from original issue: ionic-team/ionic-framework#12699

@kensodemann
Copy link
Member Author

Hello! Thank you for opening an issue with us! Since this is not a feature request for the Ionic framework itself but is a feature request for the CLI, I am moving this issue over to ionic-team/ionic-cli.

Thank you for using Ionic

@iget-master
Copy link

This is a very important feature! There's any prevision for this implementation?

@imhoffd imhoffd modified the milestones: CLI Future, CLI 4.0.0 Feb 14, 2018
@rizrmd
Copy link

rizrmd commented Aug 3, 2018

I just tried ionic serve --ssl, it doesn't work...

@imhoffd
Copy link
Contributor

imhoffd commented Aug 4, 2018

@rizkyramadhan This is an old issue. Please follow this issue for HTTPS support for Ionic 4.

@ionic-team ionic-team locked and limited conversation to collaborators Aug 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants