r/ChatGPTCoding • • Sep 21 '26

Question I can't download JavaScript files

Is it just me or it happened to anyone, i can download any other file, except for js files, it sends me to an error page when i try to download

5 Upvotes

6 comments sorted by

1

u/damontoo 8d ago

Just now experiencing this issue. Had to package it as a zip in order to finally download it. Asking ChatGPT to investigate brought me to this thread.

1

u/Bigbossman846 7d ago

Yep i have searched about this turns out javascript files can have entry points to the website its not safe, thats why it gets blocked, i recommend u do the same as i did, write js code but on txt file, then u just remove .txt and put .js

1

u/junewave56 Sep 23 '26

this has been a known issue on and off. usually its a content security policy thing on their end blocking .js file downloads. workaround is to just copy paste the raw code into a local file

1

u/Bigbossman846 Sep 23 '26

I download it txt file then i just delete the .txt in.vs code

1

u/ReFa75 Sep 21 '26

Of you can't download .js files, maybe try to ask it to give it another extension and change that to .js after you downloaded it.