Tell us what’s happening:
Runnig the challenge locally isn’t working for submission. I’ve passed all the necessary tests locally, so i keep the server running and tried to paste the localhost:3000 but it fails the FCC check.
###Your project link(s)
solution: http://localhost:3000
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Quality Assurance and Testing with Chai - Learn How JavaScript Assertions Work
ILM
November 22, 2025, 6:43pm
2
do you have any error in the browser console on the freecodecamp page?
Actually yes. Here is a screenshot of the last try.
ILM
November 22, 2025, 6:49pm
4
cors errors
you need to add the cors module
see for the cors module for example
You are getting CORS blocked. Move the cors middleware up right below var app = express();
var app = express();
var cors = require('cors');
app.use(cors({optionsSuccessStatus: 200})); // some legacy browsers choke on 204
You are not using toUTCString in the GMT condition for the UTC time.
Hello @ILM ,
I found out from the link you shared with me, that the CORS header is missing.
i have managed to successfully submited the link and passed all 5 tests with this addition to the code.
'use strict';
require('dotenv').config();
const express = require('express');
const myDB = require('./connection');
const fccTesting = require('./freeCodeCamp/fcctesting.js');
const app = express();
// add this CORS header
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*'…
Thanks for the share. I think i do it right, but it’s still not working, getting the same console error messages.
Here is the code. And the previous version is on my github freeCodeCamp/quality-assurance at main · PedroBizachi/freeCodeCamp · GitHub cloned from the boilerplate.
ILM
November 22, 2025, 7:17pm
6
try with the options for the cors module too, adding the cors headers
I’ve tryed, without success.
I’m going to close this forum because switching browsers was my only option. I was using Chromium, but I switched to Firefox and now I can submit my lessons.