Skip to content
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

ActionController::InvalidCrossOriginRequest: Security warning #742

Closed
brian-kephart opened this issue Dec 14, 2017 · 2 comments · Fixed by #764
Closed

ActionController::InvalidCrossOriginRequest: Security warning #742

brian-kephart opened this issue Dec 14, 2017 · 2 comments · Fixed by #764

Comments

@brian-kephart
Copy link
Collaborator

brian-kephart commented Dec 14, 2017

I'm experiencing an issue similar to this one. That link covers all the details, but basically I get this error whenever a crawler tries to access any js file that doesn't exist on the server, instead of a 404. All these requests are being routed to camaleon_cms/frontend#post according to my error logger. Note that even though that link refers to the response code as 500, it is actually 422.

Their fix is here.

This began occurring when I stopped using a 404 redirect in my site settings and created a custom app/apps/themes/my_theme/views/camaleon_cms/404.html.

Ruby 2.4.2
Rails 5.1.4
Camaleon git version 2b64ade

@owen2345
Copy link
Owner

The fix is correct, can you please make a pull request with the fix?

@brian-kephart
Copy link
Collaborator Author

I'm not having any luck. I'm unclear as to how to implement this in Camaleon, and using that code with minimal changes affects Camaleon's own error handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants