-
Notifications
You must be signed in to change notification settings - Fork 9
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
No 'Access-Control-Allow-Origin' header is present #2
Comments
are you trying from locahost or server? |
my app is hosted on heroku server, HTTPS
|
have you added your authorised url in ur payfort admin panel? i think that is important too |
i just tried it, same result |
show the code that you are trying to execute. the whole flow that you are following. |
one page: `import React , {Component} from 'react'; var payfort = require("payfort-node"); class Payfort extends Component{
} export default Payfort; |
give me a little time to test it? can you provide me (mail me) a test key that i can use, that will be helpful |
take ur time, i've sent you an email to ur live.com account |
@haider288 i did not recieve an email, can you please verify? send one to [email protected] |
email sent |
hi, did you have time to look at the above issue? |
@haider288 i am testing it now. |
@haider288 are you able to get the checkout url from the the code? i am able to get that |
Yes, but when I get redirected to it I get the error mentioned previously
Regards,
Haidar
… On Feb 20, 2017, at 5:10 PM, Rohit Hazra ***@***.***> wrote:
@haider288 are you able to get the checkout url from the the code? i am able to get that
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@haider288 the process is |
I don't know what you mean by "manually" redirect the user, I just followed the sample code you posted.
Other than the code is there anything else I should know?? Something you didn't document ??
Regards,
Haidar
… On Feb 20, 2017, at 5:38 PM, Rohit Hazra ***@***.***> wrote:
@haider288 the process is
you run payfort.send_request and get a url in response and manually redirect client to there
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@haider288 payfort has changed the way their API works now. you need to create a form and call the url from client side. I am looking into this issue and will update or remove repo accordingly. |
hello, any updates ? |
Not maintained anymore, feel free to contribute |
just followed the code sample provided, yet i'm getting the below error when testing my app:
Fetch API cannot load https://sbcheckout.payfort.com/FortAPI/paymentPage. Redirect from 'https://sbcheckout.payfort.com/FortAPI/paymentPage' to 'https://sbcheckout.payfort.com/FortAPI/paymentPageC?S=1&token=BJAWM6LI842ABBN1UCSRTOP80BS4JA&' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://***.com' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
TIA
The text was updated successfully, but these errors were encountered: