2022-08-13 15:12:31 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
RSpec.describe 'Google Analytics 4 content security policy', feature_category: :purchase do
|
2022-08-13 15:12:31 +05:30
|
|
|
it 'includes the GA4 content security policy headers' do
|
|
|
|
visit root_path
|
|
|
|
|
|
|
|
expect(response_headers['Content-Security-Policy']).to include(
|
|
|
|
'*.googletagmanager.com',
|
|
|
|
'*.google-analytics.com',
|
|
|
|
'*.analytics.google.com'
|
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|