Appointments
Appointments copied to clipboard
redirection url after validation
Hello everyone;
first thanks for the great job !
Second, i was able to insert forms in an iframe on my website (nextcloud instance : home.mysite.com, website : mysite.com) Now i want to have a redirection after validation to : https://buy.stripe.com/a1b2c3xxx
But it wasn't successfull. I have this error in console :
form:1 Refused to send form data to 'https://home.mysite.com/index.php/apps/appointments/pub/ZrOx_7L5Kxxx/form' because it violates the following Content Security Policy directive: "form-action 'self' https://home.mysite.com".
Just to be precise , i've insert this line in my apache config :
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';form-action 'self' https://home.mysite.com https://mysite.com https://buy.stripe.com;"
How could i have a fonctionnal redirection ?
Did you figure it out. You probably need php occ config:app:set appointments "emb_afad_YourUserName" --value "your.domain.com"
there is more info in iFrame/Embedding section of the Help/Tutorial page