Recommendation for new theme updates

Posted in: Newspaper
Post count: 460

Hello team,

Many of us are receiving a notice from Google Search Console, regarding the upcoming Chrome browser update.

Recently, Google systems have detected that SharedArrayBuffers (SABs) are used at https://yourwebsite.com/, but no COOP or COEP headers are provided.

For Web compatibility reasons, Chrome plans to require COOP/COEP headers for the use of SABs starting with Chrome version 91 (05-25-2021). Implement the “cross-origin-isolated” behavior on your site.

Start troubleshooting

I don’t understand much code, but I think you need to add something to the functions.php file to fix this, something like:

function fb_add_cors_http_header(){
    header("Cross-Origin-Opener-Policy: same-origin");
    header("Cross-Origin-Embedder-Policy: require-corp");
}
add_action('init','fb_add_cors_http_header');

Is this correct?

It would be great if it can be updated/included in future updates. Thank you.

  • This topic was modified 5 years by Jose.
Post count: 21065

Hello!

If you try to insert this code in our file, then for the next update the changes will disappear and you have to change it again.
We will test it too and if we consider this is a fix we will implement in our future updates.
We will take in consideration your query.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.