display errors: css / js not loaded
On the specsavers-customers.acousoftonline.com the pages are displayed, but no css or js is loaded. Looking in the dev tools network tab, I see a lot of 'blocked:mixed-content' errors while loading the css and js files. With that some js errors.
After updating both of the specsavers-customer servers, it seems that AppServiceProvider.php file is overwritten, which has some custom modifications. (\var\www\specsavers-customers\app\Providers\AppServiceProvider.php)
investigating the file, it seems
\URL::forceScheme('https');
does the trick. Needs to be solved on a more elegant way in the future. Also some changes in the two 'preg_match regular expressions, but it seems that this has nothing to do with the error.
- return preg_match('/^[\p{L}À-ža-zA-Z0-9_+-_ ]*$/', $value); //matches 0-9, a-z- A-Z, dashes and spaces, special letters in the alphabet like é
- });
- Validator::extend('custom_string', function ($attribute, $value) {
- return preg_match("/^[\p{L}\wÀ-ž_.!`':\", ?+@#$%&|*€()\/\\-]+$/", $value); //matches 0-9, a-z- A-Z, dashes and spaces, special letters in the alphabet like é.
- // Make sure this does the same as the partials..
- });
- Validator::extend('aftertoday', function ($attribute, $value) {
- $testdata = new Carbon($value);
- return $testdata > Carbon::today();
- });
- Validator::extend('beforetoday', function ($attribute, $value) {
- $testdata = new Carbon($value);
- return $testdata < Carbon::today();
- });
- \URL::forceScheme('https');