Say you stand up a website with an API at https://example.com. You host your static assets on the CDN, at https://example.myfastcdn.com/. So example.com's home page looks like:
<head> <script src="https://example.myfastcdn.com/app.js"></script> </head> <body> <div id="site-root"></div><!-- app.js renders some application here --> </body>
What am I missing here?
Say you stand up a website with an API at https://example.com. You host your static assets on the CDN, at https://example.myfastcdn.com/. So example.com's home page looks like:
The origin when you load your site is https://example.com, so the scripts hosted on the CDN can still make API requests to https://example.com.What am I missing here?