A little problem, I could not find a solution for:
- The meteor application works in a local network: Served on
app.local:3000
- A website (Wordpress, Apache) will be the iframe src
So this is what it looks in meteor:
<template name="test">
<style>
body { margin: 0; }
iframe { display: block; background: #000; border: none; height: 100vh; width: 100vw; }
</style>
<iframe src="http://mllnm.de/wp-api" frameborder="0"></iframe>
</template>
But as I expected:
Refused to frame 'http://mllnm.de/wp-api' because it violates the following Content Security Policy directive: "default-src 'self' http://.googleapis.com https://.googleapis.com http://.gstatic.com https://.gstatic.com http://.bootstrapcdn.com https://.bootstrapcdn.com". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
So what .htaccess-settings/PHP-headers do I have to set to allow embedding mllnm.de on an foreign domain?
Note: http://mllnm.de/wp-api is just an example page.