Back End Development and APIs Projects - URL Shortener Microservice Test 3 refuses to pass, CORS issues

Tell us what’s happening:

im stuck
every other project passed the tests but ive been working on this for over 8 hours now.
when I try and send a proper redirect response it fails due to CORS issues (ive added cors headers 30 different ways but they arent maintained through the fetch)
idek what to do

this is my github repo for it
here is the site its hosted at

The site works just fine when interacting with the form provided. The complexity of this project has skyrocketed due to this issue, it was cleanly coded and worked just fine but the tests refuse to pass
you can go to YouTube
itll take you to youtube, because thats whats stored in the database
you can even go to
Create Next App
and itll redirect you right back to my main page with the searchParam ?v=1742419282167 because for some reason thats how they decided to test this
###Your project link(s)

githubLink: GitHub - Critical-3rr0r/portfolio

solution: Create Next App

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 OPR/117.0.0.0

Challenge Information:

Back End Development and APIs Projects - URL Shortener Microservice

I would like to point out that this form even recognizes that the API reroutes to the main page since it changed the links into the name of their destination
how can the forms recognize the request but the test wont???