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 issue #19

Open
atoyansk opened this issue Jul 6, 2022 · 0 comments
Open

CORS issue #19

atoyansk opened this issue Jul 6, 2022 · 0 comments

Comments

@atoyansk
Copy link

atoyansk commented Jul 6, 2022

I have CORS issue in Angular 8:

Access to XMLHttpRequest at 'https://www.israelpost.co.il/npostcalc.nsf/CalcPrice?openagent&lang=HE&menuChosen=%D7%9E%D7%A9%D7%9C%D7%95%D7%97+%D7%93%D7%95%D7%90%D7%A8+%D7%91%D7%90%D7%A8%D7%A5~%D7%97%D7%91%D7%99%D7%9C%D7%94&serviceoption=%D7%9E%D7%A1%D7%A0%D7%99%D7%A3+%D7%9C%D7%A1%D7%A0%D7%99%D7%A3&qty=1&shipqty=0&weight=400&cname=' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I have tried using Angular Proxy proxy.conf.json, unsuccessfully (but I don't know if it's correct):
{ "/npostcalc.nsf/CalcPrice": { "target": "https://www.israelpost.co.il/", "secure": true, "changeOrigin": true, "logLevel": "debug" } }

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

1 participant