Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want to get token from some credit card number in iframe using ajax call in knockout.

What I have tried:

I tried but i got error like

Access to XMLHttpRequest at from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Posted
Updated 2-Dec-19 21:45pm

1 solution

If you get an error message you don;t understand, google it: Access to XMLHttpRequest at from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. - Google Search[^]
Load of explanations there - start reading.

We can;t fix this for you - we have no access to your site, code, or data ...
 
Share this answer
 
Comments
CodeProjectWeb 3-Dec-19 3:47am    
yeah, i know
Can you please help me on this.

I want to get token from some credit card number in iframe using ajax call in knockout.
F-ES Sitecore 3-Dec-19 4:27am    
You can't. You can't access sites in iframes for security reasons. The target site needs to configure their site to allow it and if they don't allow it they don't allow it.
OriginalGriff 3-Dec-19 4:39am    
Which is exactly what the error message is telling him, if he had followed any of the links Google provided ... :sigh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900