samdobson / fwdform Goto Github PK
View Code? Open in Web Editor NEWQuickstart contact form processing for static sites
License: MIT License
Quickstart contact form processing for static sites
License: MIT License
I am trying to use your fwdform instance but I get the following error(in firefox) after submitting the form: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://fwdform.herokuapp.com/user/<myToken>. (Reason: CORS request failed).
The message gets sent but I do not receive any feedback from your script.
I generate the POST request using the following javascript:
$.ajax({
url: "https://fwdform.herokuapp.com/user/<myToken>",
type: "POST",
crossDomain: true,
data: {
name: name,
email: email,
message: message
},
cache: false,
success: function(){},
error: function(){},
})
When I look at the headers of my request, I see that the 'Origin' header is set. But in the headers of the response, I do not see anything CORS related. Is it possible that your script does not send the required headers back or is something wrong with my code/how I make the request?
Thanks for your help.
Registering my email works fine and I get a token, but when I run the test script by subbing in the token it yields the error message "Sorry, something went wrong!". When I tried modifying the token to see if anything would change, I received the error message "User not found". So fwdform recognizes that my email was registered, but still doesn't work. I don't really have the time to debug this myself, but this seems like a very basic issue, so I might be doing something wrong. Are only certain email accounts usable?
EDIT: After looking into this slightly more, I believe it is likely that the recent changes to Mandrill have made fwdform unusable.
So I'm having issues with the basic function:
curl --data "email=[email protected]" https://fwdform.herokuapp.com/register
token: 95424604-32cf-4da7-8317-945xxx
curl --data "email=[email protected]&name=person&message=hello" https://fwdform.herokuapp.com/user/95424604-32cf-4da7-8317-945xxx
produces "Sorry, something went wrong!".
Getting 405 when trying this out. Its works testing through terminal but not when using the html form.
Working on it bros
I setup my own instance and seem to be having trouble registering my email and testing it. This is the only way I know how to contact you.
Edit: I know nothing about Python and don't know how to debug it. Every time i try to create a new Token through /register instead of coming back with a long string it just says 'Sorry, something went wrong!'. It looks like that is your error handling.
Is it possible to modify the script so it can use Mailgun or Sendgrid, in addition to Mandrill?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.