Linked Questions
24 questions linked to/from react router doesn't work in aws s3 bucket
205
votes
22
answers
490k
views
Amazon S3 exception: "The specified key does not exist"
I am using the AmazonS3Client in an Android app using a getObject() request to download an image from my Amazon S3 bucket.
Currently, I am getting this exception:
com.amazonaws.services.s3.model....
105
votes
16
answers
124k
views
AWS CloudFront access denied to S3 bucket
I am trying to setup CloudFront to serve static files hosted in my S3 bucket. I have setup distribution but I get AccessDenied when trying to browse to the CSS (/CSS/stlyle.css) file inside S3 bucket:
...
53
votes
4
answers
98k
views
How to solve "x-cache: Error from cloudfront" on SPA
We are having issues trying to make working a SPA with a client router (react router). We are using the concept of have a DOMAIN -> CDN (CloudFront) -> S3 for serving our static files.
We have ...
21
votes
4
answers
17k
views
Getting 403 Access Denied Errors When Hosting a React Router App in AWS S3 and CloudFront
When I deployed a React Router app to AWS S3 and CloudFront and when I try to access React routes directly it gives the following error with 403 error code. I can access both the base URL(www.sample-...
9
votes
4
answers
12k
views
Azure App service not working with custom routing in React-Redux web app - need wildcard virtual directories?
I have custom routes like follows:
// @flow
import React, { PureComponent } from 'react';
import { Switch, Redirect } from 'react-router-dom';
import { withRouter } from 'react-router';
import { ...
5
votes
3
answers
7k
views
Process for React App deployment to Azure Web?
I am currently trying to deploy the default react web app to Azure and I am encountering an issue where though I deploy the contents of my build folder to the azure hosted /site/wwwroot folder I end ...
4
votes
2
answers
7k
views
React app SPA on S3 AWS while refreshing the page shows 404 page
I have a SPA made with React JS on a S3 Bucket and I’m using Cloud Front to work through HTTPS and with a custom domain. When I refresh the page - if I have another Route that is not the BASE_URL (for ...
2
votes
1
answer
7k
views
Redirection to error page in Amazon S3 static website
i have a bucket and enabled static web site hosting in it.
Say i have only two files in the bucket (index.html) and (error.html)
If a request is hit with test.html, either access denied or no such ...
5
votes
1
answer
3k
views
Client-side routing for S3 / Cloudfront with multiple path-based Single Page Apps
I have the following situation:
An S3 bucket with multiple path-based applications, grouped by version number.
Simplified example:
/v1.0.0
index.html
main.js
/v1.1.0
index.html
main.js
Each ...
6
votes
1
answer
4k
views
AWS S3 Bucket - Access Denied on Sub-Pages
So I have an AWS S3 Bucket hosting the files for a react application I've built. I use CodePipeline to build and compile the React app and store the files on an S3 bucket which is served through a ...
0
votes
2
answers
3k
views
SOLVED___Using AWS S3 to Webhost is giving no key error
I am trying to host a site with muliple paths on a S3 Bucket. Is this an available option ?
These two work on my local machine.
localhost:3000
localhost:3000/policy
Trying to host this on S3 is ...
1
vote
3
answers
2k
views
Deploying react website on aws, using react-router-dom problem
I have deployed my website on AWS using React and react-router-dom for simple route changing. However, I made a mistake by only uploading the index.html file for both the origin page and error page to ...
1
vote
2
answers
881
views
Adding HTTP Security Headers Using Lambda@Edge and Amazon CloudFront for All routes (error routes)
I am using this doc https://aws.amazon.com/blogs/networking-and-content-delivery/adding-http-security-headers-using-lambdaedge-and-amazon-cloudfront/
I am using a react app in S3 bucket, with a ...
1
vote
2
answers
1k
views
AWS hosted (s3, cloudfront) static react website does not route to sub page when the url entered from browser
I have hosted a static react website on aws and use s3, cloudfront. It has several subpages.
<Link to='/about'>about us</Link>
<Link to='/projects'>projects</Link>
<Link to='...
1
vote
1
answer
933
views
Static react website on S3 request URL to API rewritten to own URL
I'm trying to host a static react website on an AWS S3 bucket with CloudFront as a front-end.
Additionally the front-end uses an API which runs as a service on a seperate server with a connected ...