Skip to content

[stage] CORS error when calling api endpoint from articles or documentation pages #284

@ZibanPirate

Description

@ZibanPirate

Describe the bug
When navigating to any article or documentation, authors and contributors do not show up, when you open network tab, it says the network call is blocked because of CORS error

To Reproduce
Steps to reproduce the behavior:

  1. Go to stage.dzcode.io
  2. Click on "Learn" on navbar
  3. Click on the first documentation on the sidebar: "Getting Started"
  4. See that authors and contributors keep on loading state and never actually loads

Expected behavior
Both authors and contributors load properly

Screenshots

image

Environment:

  • OS: MacOS Big Sur
  • Browser : Chrome
  • Version 89.0.4389.114 (Official Build) (x86_64)

Additional context
This is due to the changes in the last pr #283

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

Status

Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions