node.js - MEAN.js not showing in iframe -
i have display mean.js app within iframe, started simple html file:
<iframe style="height: 100%; width: 100%;" src="http://localhost:3000/#!/workouts"></iframe>
but iframe content empty, can please help me?
got it: app using helmet (https://github.com/evilpacket/helmet) setted deny in x-frame-options. so, in express configuration setted:
app.use(helmet.xframe('allow-from', 'www.mydomain.com'));
and worked
node.js angularjs meanjs
No comments:
Post a Comment