Skip to content

Eliminate forbidden errors #148

@st3wart

Description

@st3wart

Right now if json file doesn't exists. It will be forbidden. Some clients like Trezo don't like to see errors on their app :)

rwd_prod_error_2

There's one way to do this..

Use s3's feature of static website hosting for the bucket. Serve all elements through there and set redirection like so

screen shot 2015-10-13 at 10 05 53 am

Need to set permissions policy so that access to object not found becomes 404.

predictry2 bucket has been set on s3 as an example. Go to

http://predictry2.s3-website-ap-southeast-1.amazonaws.com/anything and it will go to
http://predictry2.s3-website-ap-southeast-1.amazonaws.com/pubnub.html

Now the problem is this way doesn't have support for https. So for https still have to access directly to s3.

The other way is to use API gateway management from AWS + lambda function to return the rec

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions