Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Describe 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:

  1. Use the adyen-web UMD module

Expected behavior No errors should be produced by using our module.



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:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

RIAEvangelistcommented, Apr 13, 2021

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

    console.log( to cors fix..., link);

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.

nickcaballerocommented, Apr 13, 2021

Agreed, I ran into this same issue recently and happened to realize that the origin was missing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found