Here is my code pen:
so this is the error I am getting consitently,
Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://s.codepen.io’ is therefore not allowed access
All im trying to do for now is get the information from the url on the main page and log it to my console. Apparently i need some sort of header to get access but no matter what I put it doesn’t seem to work. Any ideas on how to fix this?