0

I get this error when i try to .load() another html file into the div of the calling html file.

    <title>SubSuggester.com</title>
    <link rel="shortcut icon" href="images/reddit_icon.png" />
    <link rel="stylesheet" href="assets/css/main.css" />
    <script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
    crossorigin="anonymous"></script>

    <script type="text/javascript">

        $(document).ready(function() {

            $('.secondDivID').load("login.html");
        });
    </script>
  • Could some one please help? – George John Oct 19 '19 at 19:52
  • Possible duplicate of ["Cross origin requests are only supported for HTTP." error when loading a local file](https://stackoverflow.com/questions/10752055/cross-origin-requests-are-only-supported-for-http-error-when-loading-a-local) – xprilion Oct 19 '19 at 19:57

0 Answers0