I am trying to download files stored in bitbucket using a JavaScript code and I am getting an error stating that I need to set my source in the response header. The request is being blocked by the browser due to CORS policy. I have read many articles that I may need to use REST API for this. I don't have a backend yet but I can get it set up. I am fairly new to web development. Can someone help me with the steps I need to follow for this task?