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
Cant send Cross Browser Requests #1907
Comments
Almost forgot. When I test the examples above the XHR request hangs and gives me a Provisional Header. This is the header: General: This is then followed by this when it finally finished about a minute later: General: |
Passenger doesn't have any blocking mechanisms, so I wouldn't guess the problem is there. The first place to look for potential issues is always the log, so please have a look there. You seem to have committed an Either way, please try this with the latest version of Passenger, as 4.0.59 is quite old. |
You should also check if the correct CORS headers are set. |
@OnixGH That's an old log on Github, but the problem has since been fixed. There was a problem with the Sendgrid API key. I just don't understand why everything works until I use passenger. I can't access the server logs on my VPS since it's not allowed on Dreamhost. I have just finished creating a local development environment that mimics my Dreamhost VPS so I'll run some tests and see what's going on. Hopefully, I'll find something in the logs. |
@BFunk86 any updates on this? |
Closing due to inactivity + can't reproduce. |
My Setup:
I am trying to make a cross browser XHR request while using passenger and it keeps failing. I have tried it on multiple sites. The first site, programmingtheweb.com is a Node application sending a POST request to Sendgrid upon contact form submit. I have tested this while running it on my computer and it works fine as well as running the app.js file from the terminal on port 3000 and when going to programmingtheweb.com:3000 the contact form works correctly and sends the email. When it is run using Phusion Passenger it doesn't work. The original code for this is on Github here: https://github.com/BFunk86/programmingtheweb.com
The second website that isn't working is youngbrandon.com. This issues a cross-browser GET request using javascript on the client side to call the http://api.icndb.com api when the user clicks the New Quote button.. This also works when not on Passenger and the code can be seen here: http://codepen.io/Youngbd/pen/NrRZam. The weird thing about this is that it makes the first GET request when the page loads, just not when the button is clicked.
So I guess my question is, is there something in Passenger that is blocking my request? I can not find anyone else experiencing this problem except one thread on stack overflow where the problem was due to an older version of Passenger. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: