CORS issue
See original GitHub issueDescribe the bug A CORS issue is present with the log API while this is not a breaking bug, it is ugly and would cause strict front-end testing to fail.
This is using "@adyen/adyen-web": "^4.2.1"
To Reproduce Steps to reproduce the behavior:
- Use the adyen-web UMD module
Expected behavior No errors should be produced by using our module.
Screenshots
Desktop (please complete the following information):
- OS: all
- Browser: all
- Version: 4.2.1
Smartphone (please complete the following information):
- Device: all
- OS: all
- Browser: all
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
CORS errors - HTTP - MDN Web Docs - Mozilla
If the CORS configuration isn't setup correctly, the browser console will present an error like "Cross-Origin Request Blocked: The Same ...
Read more >Understanding and Resolving CORS Error - Contentstack
CORS is implemented on the server-side; it cannot be reconfigured on the client-side. The CORS behavior, commonly termed as CORS error, is a...
Read more >3 Ways to Fix the CORS Error — and How the Access-Control ...
The error stems from a security mechanism that browsers implement called the same-origin policy. The same-origin policy fights one of the most ...
Read more >What Is a CORS Error and How to Fix It (3 Ways) - Bannerbear
As a CORS error occurs when the external API server doesn't return the HTTP headers required by the CORS standard, you can add...
Read more >CORS errors and how to solve them - Topcoder
Or, your API fails and shows a CORS error in the console. · This happens because the same-origin policy is part of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The docs stuff and CA will end up being brought inhouse to the DevEX / Devadvocacy teams.
For the CORS issue itself though, a nice way to help devs with this would be a
Perhaps even a global fetch interface for the class that wrapped all calls in a single handler to document errors. We can use fancy logs to include actual links to make solutions very dev-friendly to reduce the overhead on docs and customer support for this sort of issue.
Agreed, I ran into this same issue recently and happened to realize that the origin was missing.