NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I use Rails to point my local server. I can see my local map in web browser when i type localhost:3000.But When I try to sign up, The error occours: Parameters: {"utf8"=>"✓", "authenticity_token"=>"+DRjYos1zxLzd5iDC9AZyUX5UqN3lhiUUcLmHmU5FAy2r6TRQoarVoC2ci/Fe4w9p/u9JA4x05BwRlhAJCPatA==", "user"=>{"email"=>"yuanyahui11@gmail.com", "email_confirmation"=>"yuanyahui11@gmail.com", "display_name"=>"yeager", "auth_provider"=>"", "pass_crypt"=>"[FILTERED]", "pass_crypt_confirmation"=>"[FILTERED]"}, "commit"=>"Sign Up"} Can't verify CSRF token authenticity. How can I sovle this,Hope I can get help .Thanks!

asked 28 Oct '17, 14:11

gleide's gravatar image

gleide
797712
accept rate: 50%

2

Please be a bit clearer. Are you running your own instance of the rails port? If yes https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md has configuration information.

(29 Oct '17, 19:52) SimonPoole ♦
1

In addition, would it be possible to take a step back and explain what problem you are trying to solve - what is your goal?

(29 Oct '17, 20:05) SomeoneElse ♦

I did run my own instance of the rails port. I first build a local tile server following the guide: https://switch2osm.org/manually-building-a-tile-server-16-04-2-lts/.Then I want to edit my local title server without changing openstreetmap server's data.So I used Rails port to point my local server.I want to use JOSM to edit my data and upload to my http//localhost:3000/api.Then I need to Authentication.So I want to sign up my local server.But I failed.I am sorry my English is poor.Thanks for your help!

(30 Oct '17, 15:55) gleide

After I run rails server.In web browser,I type http://localhost:3000,I saw my local map.The page are very similar to openstreetmap.org's.The only differences is is showed my own tile.So I click Signup,But cannot success.It shows the error above.

Sincerely hope to get your help.Thanks!!!

(30 Oct '17, 16:09) gleide
1

For info for anyone looking to answer there's a bit more info on a related question from the same person https://help.openstreetmap.org/questions/60716/how-can-edit-my-local-tile-server-without-uploading-changes-to-openstreetmap-server that adds a bit of context here.

(24 Nov '17, 11:21) SomeoneElse ♦

Finally I solved this problem by creating a blank file at tmp/cache-dev.txt. This will turn on a local in-memory cache store, which will be used to store your user session data. Hope this can help those who met the same problem.

permanent link

answered 24 Nov '17, 14:11

gleide's gravatar image

gleide
797712
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×293
×3

question asked: 28 Oct '17, 14:11

question was seen: 2,073 times

last updated: 24 Nov '17, 14:11

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum