I had that setting set, but was still failing with the same error, the issue was on the site I was trying to add as preview, it was having the following setting:
async headers() { return { // This will set the X-Frame-Options header to "SAMEORIGIN" for all pages source: '/:path*', headers: { key: 'X-Frame-Options', value: 'SAMEORIGIN', }, ], }, ]; }
So I changed it to be as follows:
async headers() { return { // This will set the X-Frame-Options header source: '/:path*', headers: { key: 'X-Frame-Options', value: 'ALLOW-FROM https://mc.us-central1.gcp.commercetools.com', }, ], }, ]; }
Good thing we learned that is possible to add a preview on MC :D
Thank you All!
Really cool. What is it that you are building? An integrated preview as shown in the screenshot in your first post?
@Philipp Hofmann
This was just a POC to see the custom views in action.