Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72443

How can I get my HTML file to access my CSS and JavaScript files in an Amazon S3 Bucket?

$
0
0

I am currently trying to host an html file as a website on AWS S3 to get around the CORS Policy. When I put all of my documents into a new bucket, the html file opens without accessing the css or javascript that is in the bucket with it. When I open the file outside of the bucket (i.e. from my computer). The page opens with all the css and javascript working. I am wondering how I can get my css and javascript working within the bucket.

There are a few ideas I have that might help with the problem, but I have no idea how to implement them. I'm not sure if there are extra permissions I must grant to my files to allow them to access each other. I'm also not sure if there is something within the code of the html file that must change. Any help is much appreciated!


Viewing all articles
Browse latest Browse all 72443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>