sourcepirate / force-app-engine

Automatically exported from code.google.com/p/force-app-engine
0 stars 0 forks source link

SSL must be allowed (optional or always) for form submission to work #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install sample application
2. Access (via SSL?)
3. 'Create contact' and observe that the createContact handler redirects to
the static form

What is the expected output? What do you see instead?
Was redirected back to the original form when I should have seen something
like:
Create Contact Sample
Create contact succeeded
The record was created with id 'xxx'

Please provide any additional information below.

It appears that by default SSL is denied and the resulting redirects break
the form submission. Accordingly 'secure' must be set to 'optional' (or
'always')

It worked for me by updating the handlers as follows:

handlers:
- url: /static
  static_dir: static
  mime_type: text/html
  secure: optional

- url: /css
  static_dir: css
  mime_type: text/css
  secure: optional

- url: /.*
  script: main.py
  secure: always

Original issue reported on code.google.com by s...@samj.net on 8 Jan 2009 at 4:03

GoogleCodeExporter commented 9 years ago
Thanks !

Original comment by vneh...@gmail.com on 14 Apr 2009 at 1:47