Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Extension Error: TypeError: Failed to fetch #68

Open
Frederisk opened this issue Nov 7, 2022 · 0 comments
Open

Web Extension Error: TypeError: Failed to fetch #68

Frederisk opened this issue Nov 7, 2022 · 0 comments
Labels
upstream This issue is caused by upstream wontfix This will not be worked on

Comments

@Frederisk
Copy link
Owner

Full error message:

Access to fetch at 'https://github.com/' from origin 'https://v--05jqmiibrpsovhruor6qb71uo3ga8g9dbv6hr2q5l7elh6s78j7p.vscode-cdn.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
ErrorName: TypeError; ErrorMessage: Failed to fetch.

Extension Guides - Web Extensions:

For accessing web resources, the Fetch API must be used. Accessed resources need to support Cross-Origin Resource Sharing (CORS)

The problem is caused by the browser's security policy and depends on the backend settings, and this is part of the security specification. As a part of normal web application, this extension cannot bypass this restriction in a non-destructive way.

For more details see: https://fetch.spec.whatwg.org/

Note: The error occurs when the response is received, not when it is sent. Generally, operation messages can be sent successfully.

@Frederisk Frederisk added bug Something isn't working wontfix This will not be worked on labels Nov 7, 2022
@Frederisk Frederisk changed the title Web Extension Error: TypeError: Failed to fetch Web Extension Error: TypeError: Failed to fetch Nov 7, 2022
@Frederisk Frederisk added the upstream This issue is caused by upstream label May 6, 2023
@Frederisk Frederisk removed the bug Something isn't working label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream This issue is caused by upstream wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant