My current project involves hosting an HTML file as a website on AWS S3 in order to circumvent the CORS Policy. However, when I uploaded all my files into a new bucket, the HTML file was able to open but without accessing the accompanying CSS and JavaScript. Strangely, when I opened the file directly from my computer (outside of the bucket), everything worked perfectly with the CSS and JavaScript. I am now seeking guidance on how to make sure the CSS and JavaScript work within the bucket.
I have a few ideas for potential solutions, but I lack the know-how to actually implement them. It's possible that there are additional permissions needed to allow the files to access each other properly. I'm also wondering if there are any necessary changes that should be made within the code of the HTML file itself. Any assistance or advice on this matter would be greatly appreciated!