Appointments icon indicating copy to clipboard operation
Appointments copied to clipboard

redirection url after validation

Open MyPsyOnline opened this issue 1 year ago • 1 comments

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 ?

MyPsyOnline avatar Jul 09 '23 16:07 MyPsyOnline

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

SergeyMosin avatar Aug 22 '23 17:08 SergeyMosin