Skip to content

No CORS Headers #14357

@Nuli-byte

Description

@Nuli-byte

Bug report

Required System information

  • Node.js version: v16.17.0
  • NPM version: 6.14.17
  • Strapi version: 4.3.8
  • Database: SQLite
  • Operating system: Windows 10

Describe the bug

There is no CORS headers when i request the api.

Steps to reproduce the behavior

  1. Launch "npx create-strapi-app@latest strapi-4.3.8 --no-run"
  2. Change the port ".env" to 3000
  3. Start the app in developpement mode and add content
  4. Request the API

Expected behavior

By default (from the documentation), there should be an "access-control-allow-origin : '*'" header.

Screenshots

Capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: 💥 breaking changeThis PR contains breaking changes and should not be mergedissue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:strapiSource is core/strapi packagestalestale-before-2023status: confirmedConfirmed by a Strapi Team member or multiple community members

    Type

    No type

    Projects

    Status

    Fixed/Shipped

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions