Angular on AWS (Cloudfront/S3) for Safari

前端 未结 2 835
难免孤独
难免孤独 2021-01-13 22:11

I have issues viewing my site on Safari. I know there is lots of information to find but I can\'t figure out what would actually work.

I have an Angular app with an

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 23:11

    I found the solution. Apparently the hash in Safari and ios is not dropped if you are using https protocol. You have to add the protocol to S3 redirect options like this:

    
        https
        test.example.com
        #!/
    
    

    In this example I point to Cloudfront distribution which supports https. With the new Certificate manager it is very easy to install a free SSL certificate.

提交回复
热议问题