Nginx web, proxy and Cloudflare


How to configure Nginx web, Nginx proxy, and Cloudflare to avoid the issue with CORS? the webserver hosted on the on “AlmaLinux 8”

Bellow the simple code of HTML and JavaScript. Should I modify it and set proxy? If yes then which one?

    <title>CCXT Basic example for the browser</title>
    <script type="text/javascript" src=""></script>

        document.addEventListener ("DOMContentLoaded", function () {

            alert ('ccxt version ' + ccxt.version + ' supporting '+ ccxt.exchanges.length.toString () + ' exchanges');

            //const proxy = ''
            const exchange = new ccxt.bittrex ({ 'proxy': proxy })
            const symbol = 'ETH/BTC'

            exchange.fetchTicker (symbol).then (ticker => {

                const text = [
                    JSON.stringify (ticker, undefined, '\n\t')

                document.getElementById ('content').innerHTML = text.join (' ')

<h1>Hello, CCXT!</h1>
<pre id="content"></pre>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.