action_load_provinces_js issue with ssl - need help with override

Permalink
I am having issues with a site that uses cloudflare ssl. The states/provinces list does not populate in ecommerce checkout. This is not an ecommerce issue according to support there but an issue with concrete 5.6 core.

error is "Refused to execute script from 'https://www.mywebsite.com/index.php/tools/required/attribute_type_actions?atID=9&akID=28&action=load_provinces_js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
country_state.js:4 Uncaught ReferenceError: ccm_attributeTypeAddressStatesTextList is not defined."

Ecommerce support said the below.

"I was able to isolate the code that is responsible for this to `Concrete5_Controller_AttributeType_Address::action_load_provinces_js`. Just override the attribute type controller for the address attribute and replace that "action_load_provinces_js" with a method that sets the proper content-type headers.http://legacy-documentation.concrete5.org/tutorials/overriding-core...

Can anyone tell me how to do this? I am not a developer but I understand in general c5 overides etc.

Best
Phil

PhilYoung