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

GUI does not work in Safari #229

Open
johnbelamaric opened this issue Nov 28, 2022 · 3 comments
Open

GUI does not work in Safari #229

johnbelamaric opened this issue Nov 28, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@johnbelamaric
Copy link
Member

This is second hand from someone at the ONE Summit trying to do the Nephio workshop. They tried to access the GUI and just got a blank screen. Chrome worked fine.

@ChristopherFry

@johnbelamaric johnbelamaric added the bug Something isn't working label Nov 28, 2022
@ChristopherFry ChristopherFry self-assigned this Dec 16, 2022
@ChristopherFry
Copy link
Collaborator

Thanks for reporting this.

I'm able to reproduce this by following https://github.com/nephio-project/one-summit-22-workshop#accessing-your-environment. Safari can fetch the initial html page successfully using the http protocol, however, when it attempts to fetch the dependencies for the page (javascript files), Safari changes to the protocol to https which fails. Chrome keeps the protocol as http for both, which explains why it works in Chrome but not in Safari.

I'm still looking into why Safari changes the protocol from the initial request and how to best solve this. As a note, this does not occur when launching the UI for development (using yarn dev) but when using kubectl port-forward with the UI hosted in Kubernetes.

@adetalhouet
Copy link

After a little bit of troubleshooting, it seems to be two things causing the issue:

  • we are using default CSP configuration; setting upgrade-insecure-requests: false under the csp section enforces the application to not request upgrading the request to https
  • it seems Safari doesn't support all of CSP, as depicted here

@johnbelamaric
Copy link
Member Author

Thanks @adetalhouet, I will update the Nephio app config for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants