Skip to content

Impossible to show admin page after local install #12010

@justoverclockl

Description

@justoverclockl

Here the screencast of the error

X74GQMHLC3

Console error:

Refused to connect to 'http://localhost:1337/admin/project-type' because it violates the following Content Security Policy directive: "connect-src 'self' https:".

Error: Network Error
    at e.exports (main.dfa22c7a.js:2)
    at XMLHttpRequest.y.onerror (main.dfa22c7a.js:2)
(anonimo) @ main.dfa22c7a.js:2

Server.js

module.exports = ({ env }) => ({
  host: env('HOST', '127.0.0.1'),
  port: env.int('PORT', 8000),
});

database js:

const path = require('path');

module.exports = ({ env }) => ({
  connection: {
    client: 'sqlite',
    connection: {
      filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
    },
    useNullAsDefault: true,
  },
});

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