Invalid ‘X-Frame-Options’ header ‘ALLOWED FROM’ customizer.php
-
Customizer appears to break in Safari for Mac. When loading the customizer an error is registered in the console like so:
Invalid 'X-Frame-Options' header encountered when loading 'https://sitename.com/?customize_changeset_uuid=f59f1a5b-5eeb-4d8a-8588-50679db14627&customize_theme={theme_name}&customize_messenger_channel=preview-0': 'ALLOW-FROM https://sitename.com/wp-admin/customize.php' is not a recognized directive. The header will be ignored.
When changing the Site Title for example, it will update the title, but then the title title will disappears because the partial is unable to load due to customizer.php being inaccessible within the iFrame.
error_file: "/path_to_public_html/wp-includes/customize/class-wp-customize-partial.php" error_line: 217 error_number: 2 error_string: "call_user_func() expects parameter 1 to be a valid callback, function 'theme_customize_partial_blogname' not found or invalid function name" partial: "blogname"
I have scoured the forums for a similar issue but I am have not encountered anything that would indicate how I can address this issue.
The issue only persists on safari on my MacBook and does not appear to be an issue on any other browser, nor does the issue happen on my PC.
I suspect the issue is Safari doesn’t support ‘ALLOW FROM’ and perhaps it should be changed to ‘SAMEORIGIN’
Is there a way for me to change the x-frame filter for customizer.php so that the customizer functions as expected on my Mac.
Thank you
- The topic ‘Invalid ‘X-Frame-Options’ header ‘ALLOWED FROM’ customizer.php’ is closed to new replies.