{"id":21535,"date":"2020-09-24T10:58:03","date_gmt":"2020-09-24T14:58:03","guid":{"rendered":"https:\/\/www.spreadshop.com\/blog\/?p=21535"},"modified":"2025-09-23T09:35:21","modified_gmt":"2025-09-23T13:35:21","slug":"http-javascript-integration-discontinued","status":"publish","type":"post","link":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/","title":{"rendered":"Javascript Shop Integration Discontinued"},"content":{"rendered":"<p>We want to make your Shop safer and faster. If you have integrated your Spreadshops with Javascript, you will no longer be able to have access through the HTTP protocol. Access to your Shop will need to be established through HTTPS.<\/p>\n<p><!--more--><\/p>\n<h2><strong>Why are we switching to HTTPS?<\/strong><\/h2>\n<p>We want to make our entire platform more secure while improving the loading times of your Spreadshop. We\u2019ll achieve this by adding all Spreadshirt and Spreadshop domains to the so-called &#8220;<a href=\"https:\/\/en.wikipedia.org\/wiki\/HTTP_Strict_Transport_Security\">HSTS preload list<\/a>&#8220;. This concerns your Shop as it is run on a Spreadshirt domain.<\/p>\n<p>It\u2019s going to get that little bit technical when explaining why we are doing this. Apologies! We\u2019ve been redirecting website requests on our own servers from HTTP to HTTPS in the past. For technical reasons, we had to include a CORS-Header while redirecting HTTP to HTTPS on the server. This was necessary to make Javascript work in integrated shops. The CORS headers won\u2019t be available anymore after the switch, meaning all Shops integrated with Javascript that use HTTP will no longer function properly.<\/p>\n<p>This is why it is necessary that all Shops integrated with Javascript change their protocol from HTTP to HTTPS.<\/p>\n<h2><strong>What do I have to do?<\/strong><\/h2>\n<p>If you\u2019ve integrated your Shop in your WordPress website by means of a the Spreadshop plugin, all you need to do is <a href=\"https:\/\/wordpress.org\/plugins\/spreadshop\/\">update the plugin<\/a>. If you\u2019ve integrated your Shop with Javascript, simply replace the old code with the new one directly on your website:<\/p>\n<h3><span style=\"color: #ff6600\"><strong>Old code:<\/strong><\/span><\/h3>\n<pre>&lt;p&gt;\r\n   &lt;script type=\"94b6ffd88c5658e95d03a9ec-text\/javascript\"&gt;\r\n      var spread_shop_config = {\r\n         shopName: 'SpreadShop',\r\n         locale: 'us_US',\r\n         prefix: 'link to shop',\r\n         baseId: 'myShop'\r\n      };\r\n   &lt;\/script&gt;\r\n&lt;\/p&gt;\r\n&lt;p&gt; \r\n   &lt;script type=\"94b6ffd88c5658e95d03a9ec-text\/javascript\" src=\"\/\/shop.spreadshirt.com\/shopfiles\/shopclient\/shopclient.nocache.js\"&gt;&lt;\/script&gt;\r\n&lt;\/p&gt;<\/pre>\n<h3><span style=\"color: #339966\"><strong>New code:<\/strong><\/span><\/h3>\n<pre>&lt;p&gt;\r\n   &lt;script type=\"94b6ffd88c5658e95d03a9ec-text\/javascript\"&gt;\r\n      var spread_shop_config = {\r\n         shopName: 'SpreadShop',\r\n         locale: 'us_US',\r\n         prefix: 'link to shop',\r\n         baseId: 'myShop'\r\n      };\r\n   &lt;\/script&gt;\r\n&lt;\/p&gt;\r\n&lt;p&gt;\r\n   &lt;script type=\"94b6ffd88c5658e95d03a9ec-text\/javascript\" src=\"https:\/\/shop.spreadshirt.com\/shopfiles\/shopclient\/shopclient.nocache.js\"&gt;&lt;\/script&gt;\r\n&lt;\/p&gt;<\/pre>\n<h2><span style=\"color: #000000\">This is easy<\/span><\/h2>\n<p>All you need to do is add an &#8220;https:&#8221; in front of the Shop URL to set up your Shop for the future. Please note that there are two places where &#8220;https:&#8221; needs to be added:<\/p>\n<ul>\n<li>the prefix and<\/li>\n<li>the embedded script.<\/li>\n<\/ul>\n<p>As of January 1<sup>st<\/sup>, 2021 we\u2019ll start adding all Spreadshirt domains to the HSTS preload list. Once included, Spreadshirt domains will only respond to HTTPS. This will spell an end to old HTTP integrations \u2013 they\u2019ll get deactivated. Shops integrated with Javascript will then no longer be accessible.<\/p>\n<p><em>If you have questions about the topic, leave us a comment.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We want to make your Shop safer and faster. If you have integrated your Spreadshops with Javascript, you will no longer be able to have access through the HTTP protocol. Access to your Shop will need to be established through HTTPS. <a href=\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/\">Read more<\/a><\/p>\n","protected":false},"author":681,"featured_media":21569,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"publish_to_discourse":"0","publish_post_category":"21","wpdc_auto_publish_overridden":"1","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","_cloudinary_featured_overwrite":false},"categories":[18625],"tags":[3889,48661,48662,2730],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.3 (Yoast SEO v19.7.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Javascript Shop Integration Discontinued - The Spreadshop Blog<\/title>\n<meta name=\"description\" content=\"We want to make your Shop safer and faster. Access to your Shop will need to be established through HTTPS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript Shop Integration Discontinued\" \/>\n<meta property=\"og:description\" content=\"We want to make your Shop safer and faster. Access to your Shop will need to be established through HTTPS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/\" \/>\n<meta property=\"og:site_name\" content=\"The Spreadshop Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-24T14:58:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-23T13:35:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/images.spreadshop.com\/images\/f_auto,q_auto\/v1623173767\/blog\/824306_BlogpostGraphicforForceHTTPS3_090820_nnd7fz_21569bd33e\/824306_BlogpostGraphicforForceHTTPS3_090820_nnd7fz_21569bd33e.jpg?_i=AA\" \/>\n\t<meta property=\"og:image:width\" content=\"1400\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ralf\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ralf\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/\",\"url\":\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/\",\"name\":\"Javascript Shop Integration Discontinued - The Spreadshop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.spreadshop.com\/blog\/#website\"},\"datePublished\":\"2020-09-24T14:58:03+00:00\",\"dateModified\":\"2025-09-23T13:35:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.spreadshop.com\/blog\/#\/schema\/person\/6e633fbcc3f904ee2f6ddf603d38274c\"},\"description\":\"We want to make your Shop safer and faster. Access to your Shop will need to be established through HTTPS.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.spreadshop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Javascript Shop Integration Discontinued\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.spreadshop.com\/blog\/#website\",\"url\":\"https:\/\/www.spreadshop.com\/blog\/\",\"name\":\"The Spreadshop Blog\",\"description\":\"Spreadshop Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.spreadshop.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.spreadshop.com\/blog\/#\/schema\/person\/6e633fbcc3f904ee2f6ddf603d38274c\",\"name\":\"Ralf\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.spreadshop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/996dee80e34614d25ef087120e62d7fd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/996dee80e34614d25ef087120e62d7fd?s=96&d=mm&r=g\",\"caption\":\"Ralf\"},\"url\":\"https:\/\/www.spreadshop.com\/blog\/author\/ralf-messmann\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Javascript Shop Integration Discontinued - The Spreadshop Blog","description":"We want to make your Shop safer and faster. Access to your Shop will need to be established through HTTPS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/","og_locale":"en_US","og_type":"article","og_title":"Javascript Shop Integration Discontinued","og_description":"We want to make your Shop safer and faster. Access to your Shop will need to be established through HTTPS.","og_url":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/","og_site_name":"The Spreadshop Blog","article_published_time":"2020-09-24T14:58:03+00:00","article_modified_time":"2025-09-23T13:35:21+00:00","og_image":[{"width":1400,"height":800,"url":"https:\/\/images.spreadshop.com\/images\/f_auto,q_auto\/v1623173767\/blog\/824306_BlogpostGraphicforForceHTTPS3_090820_nnd7fz_21569bd33e\/824306_BlogpostGraphicforForceHTTPS3_090820_nnd7fz_21569bd33e.jpg?_i=AA","type":"image\/jpeg"}],"author":"Ralf","twitter_misc":{"Written by":"Ralf","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/","url":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/","name":"Javascript Shop Integration Discontinued - The Spreadshop Blog","isPartOf":{"@id":"https:\/\/www.spreadshop.com\/blog\/#website"},"datePublished":"2020-09-24T14:58:03+00:00","dateModified":"2025-09-23T13:35:21+00:00","author":{"@id":"https:\/\/www.spreadshop.com\/blog\/#\/schema\/person\/6e633fbcc3f904ee2f6ddf603d38274c"},"description":"We want to make your Shop safer and faster. Access to your Shop will need to be established through HTTPS.","breadcrumb":{"@id":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.spreadshop.com\/blog\/2020\/09\/24\/http-javascript-integration-discontinued\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.spreadshop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Javascript Shop Integration Discontinued"}]},{"@type":"WebSite","@id":"https:\/\/www.spreadshop.com\/blog\/#website","url":"https:\/\/www.spreadshop.com\/blog\/","name":"The Spreadshop Blog","description":"Spreadshop Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.spreadshop.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.spreadshop.com\/blog\/#\/schema\/person\/6e633fbcc3f904ee2f6ddf603d38274c","name":"Ralf","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.spreadshop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/996dee80e34614d25ef087120e62d7fd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/996dee80e34614d25ef087120e62d7fd?s=96&d=mm&r=g","caption":"Ralf"},"url":"https:\/\/www.spreadshop.com\/blog\/author\/ralf-messmann\/"}]}},"_links":{"self":[{"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/posts\/21535"}],"collection":[{"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/users\/681"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/comments?post=21535"}],"version-history":[{"count":9,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/posts\/21535\/revisions"}],"predecessor-version":[{"id":29546,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/posts\/21535\/revisions\/29546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/media\/21569"}],"wp:attachment":[{"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/media?parent=21535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/categories?post=21535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spreadshop.com\/blog\/wp-json\/wp\/v2\/tags?post=21535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}