Skip to content

CORS Error when using Fetch in JS. #268

@ftk789

Description

@ftk789

Describe the bug
When using Fetch, It gives CORS error in Chrome on PC, Now fixing it would be running Chrome with no flag and CORS disabled,
To Reproduce
Steps to reproduce the behavior:

  1. Use fetch

Expected behavior
Fetch a local file.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Android

Additional context
When using Fetch, it gives CORS problem, Keep in mind I'm Fetching a local file like " Test.txt", Now when building the app, I have no clue how to allow the apk to Fetch the local file, Because i'm sure in the background it gives the CORS error as well, So yea.

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