Skip to content

Docker 部署到本地后,打开后台页面登录,后台页面显示为空白 #251

@Kennytian

Description

@Kennytian
Access to script at 'http://127.0.0.1:8080/static/navbar/js/app.js' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
system.min.js:4 GET http://127.0.0.1:8080/static/navbar/js/app.js net::ERR_FAILED
dashboard:1 Access to script at 'http://127.0.0.1:8080/static/dashboard/js/app.js' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
system.min.js:4 GET http://127.0.0.1:8080/static/dashboard/js/app.js net::ERR_FAILED
app-errors.js:9 Uncaught dashboard: Application 'dashboard' died in status LOADING_SOURCE_CODE: Error loading http://127.0.0.1:8080/static/dashboard/js/app.js
    at HTMLScriptElement.<anonymous> (http://localhost:8080/static/plugins/systemjs/4.1.0/system.min.js:4:4496
dashboard:1 The resource http://localhost:8080/static/plugins/element-ui/2.11.1/index.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

看起来是这两个跨域了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions