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

CORS error #49

Open
Stelikas opened this issue Jun 4, 2022 · 2 comments
Open

CORS error #49

Stelikas opened this issue Jun 4, 2022 · 2 comments

Comments

@Stelikas
Copy link

Stelikas commented Jun 4, 2022

Trying to validate a VAT number and i get this CORS error:

Access to fetch at 'https://ec.europa.eu/taxation_customs/vies/services/checkVatService' from origin 'https://domain.test' 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.

@deibizide
Copy link

Hi @Stelikas,

I'm facing the same issue. it used to work fine but not I get this error.

Do you manage to figure anything out?

Thanks in advance

@Stelikas
Copy link
Author

Hey @deibizide

Not really, to avoid CORS issues, 90% of the time you have to do the request from the server (at least in my experience), so i used a server-side package for PHP which is my back-end language and it did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants