FCC - Anonymous Message Board refusing to connect

0

I’m working through project #2 of the FreeCodeCamp Information Security certification using Replit to construct an Anonymous Message Board app.

My issue is that we’ve been tasked to "Only allow our site to be loaded in an iFrame on our own page.

  1. I mount helmet using: let helmet = require('helmet');
  2. Next, I mount the X-Frame-Options middleware like this:
app.use(
  helmet({
    action: "sameorigin",
  })
);

OR

app.use(
  frameguard({ 
    action: "sameorigin", 
  })
);

Either way allow me to pass the task. They also allow me to pass the following task which is to not allow DNS prefetching. But now the app refuses to connect.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.