woocommerce / woocommerce-blocks

(Deprecated) This plugin has been merged into woocommerce/woocommerce
https://wordpress.org/plugins/woo-gutenberg-products-block/
GNU General Public License v3.0
405 stars 218 forks source link

Unable to See Nonce on JavaScript Fetch Request #8406

Closed tylerlazenby closed 1 year ago

tylerlazenby commented 1 year ago

Describe the bug

I am unable to get the nonce header on a response from the store API.

To reproduce

Steps to reproduce the behavior:

I have the following source code

export async function createCart() {
    const storeEndpoint = "https://markjkohlerdev.wpengine.com/wp-json/wc/store/v1/cart";
    try {
        return await fetch(storeEndpoint);
    } catch (error) {
        console.error(error);
        throw new Error("Failed to create cart session.")
    }
}

I am console.log out on the Page that is calling this method. I go to look at the headers and nonce is not there.

Expected behavior

I should see the nonce as an included header but its not there.

Screenshots

image

Environment

`

WordPress Environment

WordPress address (URL): https://markjkohlerdev.wpengine.com Site address (URL): https://markjkohlerdev.wpengine.com WC Version: 7.3.0 REST API Version: ✔ 7.3.0 WC Blocks Version: ✔ 9.5.0 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.1.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: ✔

Server Environment

Server Info: nginx PHP Version: 8.0.27 PHP Post Max Size: 100 MB PHP Time Limit: 43300 PHP Max Input Vars: 10000 cURL Version: 7.81.0 OpenSSL/3.0.2

SUHOSIN Installed: – MySQL Version: 5.7.40-43-log Max Upload Size: 50 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔

Database

WC Database Version: 7.3.0 WC Database Prefix: wp88j3841475 Total Database Size: 667.75MB Database Data Size: 416.32MB Database Index Size: 251.43MB wp_88j3841475_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_woocommerce_order_items: Data: 1.52MB + Index: 0.30MB + Engine InnoDB wp_88j3841475_woocommerce_order_itemmeta: Data: 6.52MB + Index: 6.03MB + Engine InnoDB wp_88j3841475_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_woocommerce_payment_tokens: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_woocommerce_payment_tokenmeta: Data: 0.16MB + Index: 0.16MB + Engine InnoDB wp_88j3841475_woocommerce_log: Data: 42.52MB + Index: 0.11MB + Engine InnoDB memberium_automations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB memberium_contacts: Data: 2.52MB + Index: 10.58MB + Engine InnoDB memberium_events: Data: 0.02MB + Index: 0.08MB + Engine InnoDB memberium_fields: Data: 0.02MB + Index: 0.03MB + Engine InnoDB memberium_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB memberium_lists: Data: 2.52MB + Index: 0.03MB + Engine InnoDB memberium_loginlog: Data: 0.20MB + Index: 0.17MB + Engine InnoDB memberium_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB memberium_tags: Data: 0.22MB + Index: 0.17MB + Engine InnoDB wp_88j3841475_acfw_store_credits: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_acfw_virtual_coupons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_actionscheduler_actions: Data: 8.09MB + Index: 10.86MB + Engine InnoDB wp_88j3841475_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_actionscheduler_logs: Data: 17.55MB + Index: 14.03MB + Engine InnoDB wp_88j3841475_aff_affiliates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_aff_affiliates_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_aff_hits: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_88j3841475_aff_referrals: Data: 0.02MB + Index: 0.14MB + Engine InnoDB wp_88j3841475_aff_referral_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_aff_robots: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_aff_uris: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_aff_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_aioseo_posts: Data: 1.52MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_aryo_activity_log: Data: 3.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_bb_email_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_bp_activity: Data: 0.09MB + Index: 0.16MB + Engine InnoDB wp_88j3841475_bp_activity_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_document: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_bp_document_folder: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_bp_document_folder_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_document_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_follow: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_bp_friends: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_groups: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_bp_groups_groupmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_groups_membermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_groups_members: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_88j3841475_bp_invitations: Data: 0.02MB + Index: 0.14MB + Engine InnoDB wp_88j3841475_bp_invitations_invitemeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_media: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_bp_media_albums: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_bp_messages_messages: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_messages_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_messages_notices: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_bp_messages_recipients: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_88j3841475_bp_moderation: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_moderation_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_notifications: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_88j3841475_bp_notifications_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_suspend: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_bp_suspend_details: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_bp_xprofile_data: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_xprofile_fields: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_bp_xprofile_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_bp_xprofile_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_zoom_meetings: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_bp_zoom_meeting_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_zoom_recordings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_zoom_webinars: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_bp_zoom_webinar_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_bp_zoom_webinar_recordings: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_cartflows_ca_cart_abandonment: Data: 2.52MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_cff_facebook_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_cff_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_cff_feed_caches: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_cff_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_commentmeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_comments: Data: 5.52MB + Index: 5.88MB + Engine InnoDB wp_88j3841475_cunjoshare: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_et_social_stats: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB wp_88j3841475_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_e_submissions: Data: 0.39MB + Index: 0.75MB + Engine InnoDB wp_88j3841475_e_submissions_actions_log: Data: 0.16MB + Index: 0.45MB + Engine InnoDB wp_88j3841475_e_submissions_values: Data: 0.23MB + Index: 0.27MB + Engine InnoDB wp_88j3841475_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_gf_addon_payment_callback: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_gf_addon_payment_transaction: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_gf_entry: Data: 9.52MB + Index: 3.03MB + Engine InnoDB wp_88j3841475_gf_entry_meta: Data: 18.55MB + Index: 27.58MB + Engine InnoDB wp_88j3841475_gf_entry_notes: Data: 10.52MB + Index: 3.03MB + Engine InnoDB wp_88j3841475_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_gf_form_meta: Data: 0.20MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_gf_form_view: Data: 1.52MB + Index: 0.83MB + Engine InnoDB wp_88j3841475_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_hfcm_scripts: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_ld_achievements: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_form: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_lock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_master: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_prerequisite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_question: Data: 1.52MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_statistic: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_statistic_ref: Data: 0.17MB + Index: 0.17MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_pro_quiz_toplist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_learndash_user_activity: Data: 0.48MB + Index: 1.45MB + Engine InnoDB wp_88j3841475_learndash_user_activity_meta: Data: 3.52MB + Index: 4.03MB + Engine InnoDB wp_88j3841475_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_m4ac_qdow7: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_automations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_mailpoet_automation_runs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_automation_run_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_automation_triggers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_mailpoet_automation_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_mailpoet_scheduled_tasks: Data: 0.20MB + Index: 0.17MB + Engine InnoDB wp_88j3841475_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_unsubscribes: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_mailpoet_subscribers: Data: 1.52MB + Index: 1.13MB + Engine InnoDB wp_88j3841475_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_subscriber_segment: Data: 0.27MB + Index: 0.27MB + Engine InnoDB wp_88j3841475_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_memberium_groupaccount_members: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_memberium_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_memberium_words: Data: 0.28MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_assets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_launchfunnels: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_launchfunnels_pages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_layout_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_pb_products: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_post_layouts: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_predefined_layouts: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_optimizepress_presets: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_options: Data: 9.34MB + Index: 0.25MB + Engine InnoDB wp_88j3841475_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_pmxi_hash: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_pmxi_images: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_pmxi_imports: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_pmxi_posts: Data: 0.16MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_pmxi_templates: Data: 0.14MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_popularpostsdata: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_popularpostssummary: Data: 74.61MB + Index: 87.70MB + Engine InnoDB wp_88j3841475_popularpoststransients: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_postmeta: Data: 50.58MB + Index: 35.13MB + Engine InnoDB wp_88j3841475_posts: Data: 11.52MB + Index: 3.66MB + Engine InnoDB wp_88j3841475_redirection_404: Data: 2.52MB + Index: 0.63MB + Engine InnoDB wp_88j3841475_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_redirection_items: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_88j3841475_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_refersion_cart_tracking: Data: 0.13MB + Index: 0.11MB + Engine InnoDB wp_88j3841475_rg_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_rg_form_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_rg_form_view: Data: 1.52MB + Index: 0.56MB + Engine InnoDB wp_88j3841475_rg_incomplete_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_rg_infusionsoft: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_rg_lead: Data: 2.52MB + Index: 0.41MB + Engine InnoDB wp_88j3841475_rg_lead_detail: Data: 3.52MB + Index: 8.06MB + Engine InnoDB wp_88j3841475_rg_lead_detail_long: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_rg_lead_meta: Data: 1.52MB + Index: 2.36MB + Engine InnoDB wp_88j3841475_rg_lead_notes: Data: 2.52MB + Index: 0.44MB + Engine InnoDB wp_88j3841475_rg_zapier: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_snp_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_socialslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tec_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_tec_occurrences: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_terms: Data: 0.16MB + Index: 0.16MB + Engine InnoDB wp_88j3841475_term_relationships: Data: 0.20MB + Index: 0.17MB + Engine InnoDB wp_88j3841475_term_taxonomy: Data: 0.14MB + Index: 0.16MB + Engine InnoDB wp_88j3841475_trp_dictionary_en_us_es_mx: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_trp_gettext_en_us: Data: 0.23MB + Index: 0.28MB + Engine InnoDB wp_88j3841475_trp_gettext_es_mx: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_tutor_earnings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_email_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_gradebooks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_gradebooks_results: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_quiz_attempts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_quiz_attempt_answers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_quiz_questions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_quiz_question_answers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_tutor_withdraws: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_usermeta: Data: 12.52MB + Index: 9.03MB + Engine InnoDB wp_88j3841475_users: Data: 0.17MB + Index: 0.16MB + Engine InnoDB wp_88j3841475_wcs_payment_retries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_activecampaign: Data: 0.36MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wc_comments_subscription: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_wc_customer_lookup: Data: 0.39MB + Index: 0.33MB + Engine InnoDB wp_88j3841475_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wc_feedback_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wc_follow_users: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_88j3841475_wc_order_coupon_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wc_order_product_lookup: Data: 1.52MB + Index: 0.72MB + Engine InnoDB wp_88j3841475_wc_order_stats: Data: 1.52MB + Index: 0.52MB + Engine InnoDB wp_88j3841475_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wc_phrases: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB wp_88j3841475_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_users_rated: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wc_users_voted: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_88j3841475_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_wc_zapier_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_wdp_persistent_rules_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wlifcon_options: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wlm_api_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wlm_contentlevels: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_wlm_contentlevel_options: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_wlm_emailbroadcast: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wlm_options: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_wlm_userlevels: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_88j3841475_wlm_userlevel_options: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_wlm_user_options: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_88j3841475_woocommerce_square_customers: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_wpml_mails: Data: 74.52MB + Index: 0.00MB + Engine InnoDB wp_88j3841475_yoast_indexable: Data: 2.50MB + Index: 1.30MB + Engine InnoDB wp_88j3841475_yoast_indexable_hierarchy: Data: 0.13MB + Index: 0.19MB + Engine InnoDB wp_88j3841475_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_88j3841475_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_88j3841475_yoast_prominent_words: Data: 0.31MB + Index: 0.61MB + Engine InnoDB wp_88j3841475_yoast_seo_links: Data: 0.41MB + Index: 0.38MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 0.09MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB

Post Type Counts

acf: 2 acf-field: 15 acf-field-group: 6 amn_om: 2 aoc_popup: 2 attachment: 2251 bp_ps_form: 1 bp-email: 33 bp-member-type: 2 class: 1 courses: 10 custom_css: 7 customize_changeset: 2 e-landing-page: 2 easy_widget: 1 elementor_font: 1 elementor_library: 46 elementor_snippet: 1 et_body_layout: 3 et_header_layout: 2 et_pb_layout: 83 et_template: 32 et_theme_builder: 1 forum: 71 groups: 1 language_switcher: 3 ld-achievement: 2 leadpages_post: 7 lesson: 22 mailpoet_page: 1 member_page: 1 membership: 1 mep_events: 1 mjk-member-resource: 11 mjk-mstp-training: 5 mstp-library: 83 nav_menu_item: 108 oembed_cache: 19 omapi: 32 page: 192 popuppress: 6 post: 174 product: 81 product_variation: 71 products: 1 pys_event: 7 reply: 2 revision: 38 rtrs: 1 sfwd-certificates: 1 sfwd-courses: 2 sfwd-lessons: 15 sfwd-question: 704 sfwd-quiz: 124 sfwd-topic: 116 shop_coupon: 100 shop_order: 5562 shop_order_refund: 94 shop_subscription: 339 snp_popups: 1 testimonial: 20 testimonials: 2 topic: 7 topics: 82 tribe_events: 6 tribe_organizer: 1 tribe_venue: 1 tutor_enrolled: 2 tutor_quiz: 14 wp_global_styles: 1 wpcode: 1 wpdiscuz_form: 1

Security

Secure connection (HTTPS): ✔ Hide errors from visitors: ✔

Active Plugins (8)

Elementor Pro: by Elementor.com – 3.10.3 Elementor: by Elementor.com – 3.10.2 Jetpack: by Automattic – 11.7.1 Mjk Plugin: by Mark J Kohler – 1.0 WooCommerce Blocks: by Automattic – 9.5.0 WooCommerce Payments: by Automattic – 5.3.0 (update to version 5.4.0 is available) WooCommerce Subscriptions: by WooCommerce – 3.1.4 WooCommerce: by Automattic – 7.3.0

Inactive Plugins (74)

ActiveCampaign: by ActiveCampaign – 8.1.10 ActiveCampaign for WooCommerce: by ActiveCampaign – 2.0.2 Activity Log: by Activity Log Team – 2.8.5 Advanced Cron Manager: by BracketSpace – 2.5.0 Advanced Custom Fields: by WP Engine – 6.0.7 Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 4.3.0 Advanced Order Export For WooCommerce: by AlgolPlus – 3.3.3 Advanced Post Queries: by Shabti Kaplan – 1.1.0 Affiliates: by itthinx – 4.17.0 Akismet Anti-Spam: by Automattic – 5.0.2 Better Search Replace: by WP Engine – 1.4.2 BuddyBoss Platform: by BuddyBoss – 2.2.5 BuddyBoss Platform Pro: by BuddyBoss – 2.2.5 Change Username: by ibericode – 1.0.1 Child Theme Configurator: by Lilaea Media – 2.6.0 Coinbase Commerce: by Coinbase Commerce – 1.2.1 Crypto.com Pay Checkout for WooCommerce: by Crypto.com – 1.3.4 Custom Backorders for Woocommerce: by gregbast1994 – 1.12 Custom Post Type UI: by WebDevStudios – 1.13.4 Design Upgrade Pro for LearnDash: by Escape Creative – 2.21.1 Duplicate Page: by mndpsingh287 – 4.5.1 Essential Addons for Elementor: by WPDeveloper – 5.5.3 Essential Addons for Elementor - Pro: by WPDeveloper – 5.4.4 Favorites: by Kyle Phillips – 2.3.2 Flexible Checkout Fields: by WP Desk – 3.5.4 Font Awesome: by Font Awesome – 4.3.2 Gravity Forms: by Gravity Forms – 2.6.9 Gravity Forms ActiveCampaign Add-On: by Gravity Forms – 2.0 Gravity Forms Akismet Add-On: by Gravity Forms – 1.0 Gravity Forms reCAPTCHA Add-On: by Gravity Forms – 1.1 Gravity Forms Stripe Add-On: by Gravity Forms – 4.3 Gravity Forms Zapier Add-On: by Gravity Forms – 4.2 Klarna Order Management for WooCommerce: by klarna krokedil – 1.7.1

LearnDash Licensing & Management: by LearnDash – 1.1.5 LearnDash LMS: by LearnDash – 4.5.0.1 LearnDash LMS - Achievements: by LearnDash – 1.1.1 LearnDash LMS - Certificate Builder: by LearnDash – 1.0.3 LearnDash LMS - Course Grid: by LearnDash – 2.0.7 LearnDash LMS - Elementor: by LearnDash – 1.0.3 LearnDash LMS - WooCommerce Integration: by LearnDash – 1.9.6 LearnDash LMS - Zapier Integration: by LearnDash – 2.3.0 MailPoet: by MailPoet – 4.6.1 Material Design Icons for Page Builders: by Photon WP – 1.5.0 Memberium for ActiveCampaign: by David Bullock – 1.193 OptinMonster: by OptinMonster Popup Builder Team – 2.12.1 Payment Plugins for Stripe WooCommerce: by Payment Plugins support@paymentplugins.com – 3.3.37

Product Redirection for WooCommerce: by Poly Plugins – 1.1.9 Redirection: by John Godley – 5.3.9 Refersion for WooCommerce: by Refersion Inc. – 4.9.2

RSS Featured Image: by Jordy Meow – 1.0.5 Site Kit by Google: by Google – 1.92.0 Smash Balloon Custom Facebook Feed: by Smash Balloon – 4.1.6 The Events Calendar: by The Events Calendar – 6.0.7.1 Visibility Logic for Elementor: by StaxWP – 2.3.2 Visibility Logic PRO for Elementor: by StaxWP – 2.3.2 Website Toolbox Forum: by Website Toolbox – 1.8.5 WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.21 WooCommerce Shipment Tracking: by WooCommerce – 1.6.29 WooCommerce Square: by WooCommerce – 3.5.0 WooCommerce Zapier: by OM4 Software – 2.2.1 WordPress Importer: by wordpressdotorg – 0.8 WordPress Popular Posts: by Hector Cabrera – 6.1.1 WP All Import - ACF Add-On: by Soflyy – 3.3.8 WP All Import - WooCommerce Import Add-On Pro: by Soflyy – 3.3.4 WP All Import - Yoast WordPress SEO Add-On: by Soflyy – 1.1.8 WP All Import Pro: by Soflyy – 4.7.8 wpDiscuz: by gVectors Team – 7.5.2 WP Engine Smart Plugin Manager: by WP Engine – 5.13.13 WP Mail Logging: by SendLayer – 1.10.5 WP Menu Icons: by QuadLayers – 2.2.5 WP Sheet Editor - Post Types: by WP Sheet Editor – 2.25.0 Yoast SEO: by Team Yoast – 20.1 Yoast SEO Premium: by Team Yoast – 20.0 Yoast Test Helper: by Team Yoast – 1.17

Dropin Plugins (2)

advanced-cache.php: advanced-cache.php object-cache.php: Memcached Redux

Must Use Plugins (5)

Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0 WP Engine Cache Plugin: by WP Engine – 1.1.2 WP Engine Seamless Login Plugin: by WP Engine – 1.6.0 WP Engine Security Auditor: by wpengine – 1.0.10 WP Engine System: by WP Engine – 5.0.1

Settings

API Enabled: ✔ Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5)

Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – Order datastore: WC_Order_Data_Store_CPT

WC Pages

Shop base: #331108 - /shop/ Cart: ❌ Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block. Checkout: ❌ Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block. My account: #338954 - /member-home/my-account/ Terms and conditions: #3195 - /terms-and-conditions/

Theme

Name: Twenty Twenty-Three Version: 1.0 Author URL: https://wordpress.org Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔

Templates

Overrides: –

Subscriptions

WCS_DEBUG: ✔ No Subscriptions Mode: ❌ Staging Subscriptions Live URL: https://markjkohler.com Subscription Statuses: wc-active: 29 wc-on-hold: 110 wc-cancelled: 200

WooCommerce Account Connected: ❌ No Custom Retry Rules: ✔ No Custom Retry Rule Class: ✔ No Custom Raw Retry Rule: ✔ No Custom Retry Rule: ✔ No Retries Migration Status: ✔ Completed Report Cache Enabled: ✔ Yes Cache Update Failures: ✔ 0 failure

Store Setup

Country / State: United States (US) — California

Subscriptions by Payment Gateway

other: wc-active: 2 wc-cancelled: 195 wc-on-hold: 55

WooCommerce Payments: wc-active: 27 wc-cancelled: 4 wc-on-hold: 55

Payment Gateway Support

WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions subscription_amount_changes subscription_date_changes tokenization add_payment_method

Admin

Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page

Disabled Features: minified-js new-product-management-experience settings

Daily Cron: ✔ Next scheduled: 2023-02-10 06:28:45 -07:00 Options: ✔ Notes: 127 Onboarding: completed

WooCommerce Payments

Version: 5.3.0 Connected to WPCOM: Yes Blog ID: 212951416 Account ID: acct_1M9xWFFdzsVVHnMx

Action Scheduler

Canceled: 26 Oldest: 2023-01-09 16:01:56 -0700 Newest: 2023-01-25 03:21:07 -0700

Complete: 21,721 Oldest: 2023-01-09 12:34:36 -0700 Newest: 2023-02-09 12:21:40 -0700

Failed: 742 Oldest: 2022-10-18 14:16:33 -0700 Newest: 2023-02-07 09:53:05 -0700

Pending: 51 Oldest: 2023-02-09 13:21:40 -0700 Newest: 2023-07-23 10:47:02 -0700

Status report information

Generated at: 2023-02-09 12:28:04 -07:00 `

Additional context

I can see the header come in on the network tab on chrome along with a ton of others. I am not sure what I need to do to get that nonce exposed.

opr commented 1 year ago

Hi there @tylerlazenby - I came across https://stackoverflow.com/questions/43344819/reading-response-headers-with-fetch-api which suggests that you can't just access headers unless they're specifically marked as allowed/exposed.

If you add Nonce to the Access-Control-Expose-Headers header then you should be able to access it.

I added this in my Apache web server:

<IfModule mod_headers.c>
   Header append Access-Control-Expose-Headers "Nonce"
</IfModule>

I don't think this is a WC Blocks issue, but a server configuration issue, so I will go ahead and close this. Please feel free to reopen if you need more help!