Skip to content

Fails to render graph gist #40

Open
@bplies-ATX

Description

@bplies-ATX

Using neo4j 3.1.0, running on local port 7474 (modified graphgist.js) uncommented console.log in console.js

            window.setTimeout(function () {
                try {
                    if (iframeWindow.location && iframeWindow.location.href) {
                        var consoleLocation = iframeWindow.location.href;
                        if (consoleLocation.indexOf('neo4j') === -1 && consoleLocation.indexOf('localhost') === -1) {
                            $iframe.replaceWith('<div class="alert alert-error"><h4>Error!</h4>The console can not be loaded. Please turn off ad blockers and reload the page!</div>');
                        }
                    }
                } catch (err) {
                    // for debugging only
                    console.log(err)
                }
            }, 2000);
        });

See javascript console log of

DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
at http://localhost:8000/js/console.js:71:71

Done what I can to make sure there's no CORS interference on the HTTP hosting the gist as well as Neo4j. Chrome appears to have a known issue with CORS and localhosts. Firefox has a different error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions