Posting to Snowplow micro over https

Hi,

I have setup up snowplow-micro on a local docker website that uses https but the events won’t post, they fail with a “mixed content” error

cvlsp3.1.0-analytics.js?c457:7 Mixed Content: The page at ‘https://my-local-webpage’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://haproxy:9105/com.snowplowanalytics.snowplow/tp2’. This request has been blocked; the content must be served over HTTPS.

I probably need to configure micro.conf but the repo does not come with instructions.

These are the instructions I am using - GitHub - snowplow-incubator/snowplow-micro: Standalone application to automate testing of trackers

The get request to the /micro/all endpoint works, so I know the service is at least running correctly.

If you’ve set this up over https and have some pointers, they will be most welcome.

Ed

Hey @edmundadjei

You need to run micro over https if you want to hit Micro’s collector from a website on https. You could configure HAProxy to run on https, or use a service like ngrok which will create a https tunnel.

I don’t believe Micro currently supports running over https out of box at the moment.