Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 873 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 873 Bytes

Emojit Website

The website and a widget that you can embed into a webpage.

This project was bootstrapped with Create React App.

Development

yarn install
PORT=80 yarn start

Using the Widget in an iframe

Example:

<iframe src="http://localhost/widget" width="400px" height="500px" title="Emojit reaction picker" referrerpolicy="unsafe-url"></iframe>

referrerpolicy="unsafe-url" allows the code in the iframe to get the referring URL. If someone has security concerns, then we can discuss other options. There are a bunch of suggestions at https://stackoverflow.com/questions/3420004, but we shouldn't do something that passes the full URL as a URL parameter to the iframe since that's not secure because someone could easily fake it. Maybe we could use postMessage and verify the origin.