Allowing iFraming For A Customer
Search
Allowing iFraming For A Customer
If a customer needs/wants to iFrame one of our sites, follow these steps.
Background:
Our new pages (/booking, /cs-registration, etc) injects a header option that prevents the page from being iFramed. We need to adjust this injection to allow only 1 site at a time. So if they are testing first, you have to allow their test domain and replace that with their live site later.
This change will allow iFraming from only 1 site
Booking:
- Go to <c:/ClubSpeedApps/booking/laravel/vendor/laravel/framework/src/illuminate/http/>
- Make a copy of FrameGuard.php
- Open the original FrameGuard.php file and go to line 40 where you should find this line:
- $response->headers->set('X-
Frame-Options', 'SAMEORIGIN', false);
- $response->headers->set('X-
- Update that line to show:
- $response->headers->set('X-
Frame-Options', 'ALLOW-FROM https://trackWebSite.com/', false);
- $response->headers->set('X-
- Save the file
- Go to the tracks /booking site to make sure it is still working properly (if the syntax is wrong, it can break the site)
CS-Registration (Get approval before doing):
- Go to <c:/ClubSpeedApps/cs-registration/laravel/bootstrap/>
- Make a copy of compiled.php
- Open the original compiled.php file and go to line 1137 where you should find this line:
- $response->headers->set('X-
Frame-Options', 'SAMEORIGIN', false);
- $response->headers->set('X-
- Update that line to show:
- $response->headers->set('X-
Frame-Options', 'ALLOW-FROM https://trackWebSite.com/', false);
- $response->headers->set('X-
- Save the file
- Go to the tracks /cs-registration site & go to iPad registration to make sure that still works to make sure it is still working properly (if the syntax is wrong, it can break the site)