I'm studying ruby on rails, and I don't know much about it, but I'd appreciate it if someone could tell me.
Thank you in advance.
We are trying to introduce a contact form to a website that we have already published.
I would like to send emails using rails in api mode for the backend.
I installed a gem called "rack-cors" in rails and set up CORS, but
There is an error as shown in the picture below.
Chrome is not communicating and
if tested with Firefox The communication is working, but there is an error.
If anyone knows how to solve this problem, please let me know.
↓ chrome error
↓ Firefox Error
Try adding a description such as
config/application.rb.The "example.com" part is the domain where the front end is running.
Here's what it says.
If it doesn't work, the
cors.rb file might be misplaced, and it should have been loaded under
© 2022 OneMinuteCode. All rights reserved.