https://github.com/softchef/cloudfront-x-frame-example
https://github.com/softchef/cloudfront-x-frame-example
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/softchef/cloudfront-x-frame-example
- Owner: SoftChef
- License: apache-2.0
- Created: 2021-10-26T14:23:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-08T08:10:45.000Z (over 4 years ago)
- Last Synced: 2025-01-22T21:45:25.826Z (over 1 year ago)
- Language: TypeScript
- Size: 482 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Initialize
`npm install` or `yarn install`
## Deployment
`cdk deploy`
## Test
When CDK deploy success will display three website URL

1. PWA URL: The PWA demo website to embed Website URL and Proxy URL.
2. Website URL: This is simulate the website has x-frame-options header, it will denied embed web content.
3. Proxy URL: Through CloudFront + Lambda@Edge to fetch Website URL(origin) and remove the x-frame-options header, then embedable this URL, the content is same from Webiste URL.