COVIDImpact / CovidImpact

COVID-19 is impacting countless small businesses across Canada, we all face uncertainty. Several colleagues and I asked what we could do to help? After a weekend of non-stop coding we’ve put together #CovidImpact, a FREE Small Business Care Package which features: A curated list of programs to help them through the crisis. Real-time news relevant to Canadian ventures Simulation tool to see how their business may be affected across various scenarios depending on how long COVID-19 drags out for. Together, Canadian businesses will get through this by supporting each other! CovidImpact is built in Vue with Javascript, HTML and CSS files. The project utilizes various Bootstrap-Vue components and newsapi.org to get the latest business news. The app is hosted on S3 and uses serverless functions for a mailchimp newsletter.
http://covidimpact.ca/
Apache License 2.0
3 stars 0 forks source link

AccessDenied on the back page #20

Closed NoirKomBatman closed 4 years ago

NoirKomBatman commented 4 years ago

Overview:

Currently the website gives access denied on the refresh at covidimpact.ca/financial-aid. This needs to be fixed so that the users can still access the website if they decide to refresh the page

What needs to be done:

  1. Go to Route 53 AWS console
  2. Add a default redirect */ to index.html
  3. index.html lives in an S3 bucket
  4. Figure out how to make the default redirect point to the bucket's index.html
  5. Test manually to ensure that it works

Criteria of success:

  1. The website is still accessible on the refresh

Documentation:

https://aws.amazon.com/premiumsupport/knowledge-center/redirect-domain-route-53/ https://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RoutingToS3Bucket.html

Stakeholder:

@NoirKomBatman @albertocevallos

NoirKomBatman commented 4 years ago

The problem is on the access to covidimpact.ca/financial-aid the request is going to S3 with an object key covidimpact.ca/financial-aid which does not exist in the bucket. Route /financial-aid exists in the virtual DOM and is controlled by VueRouter. What we can do:

  1. On the access redirect to root / to get the assets from the bucket and then redirect at the virtual DOM level
  2. Remove VueRouter
  3. Research more on Route53, S3, and VueRouter on how to overcome this issue