Click here to Skip to main content
15,902,445 members

Comments by prajapatiabhishek31 (Top 3 by date)

prajapatiabhishek31 28-Feb-22 9:13am View    
Thanks a lot!
prajapatiabhishek31 28-Feb-22 8:34am View    
Thanks for answering! I'm new to CORS concept so I'm still trying to understand it but as far as I've understood that it won't work without my server getting whitelisted by the source itself. am right on that?

One more thing, when I try the same thing with a node.js script I get the html file. why is that?

const axios = require('axios').default;
axios.get('https://youtube.com')
.then(res => console.log(res))
.catch(err => console.log(err));
prajapatiabhishek31 19-Feb-22 11:33am View    
Thanks for answering but as I mentioned before about my workflow that I'm using Parcel bundler for my project.

You're right about the link tag but as I'm using the parcel that's why it gets compiled automatically from href="../sass/main.scss" to href="../sass/main.css" in the final dist html file.

I still haven't found any solution to this problem!