Preview Port

anonymous 6 months ago in General • updated by Alexander Blach (Developer) 6 months ago 1

Does the localhost server for the html preview in Safari always use the same port?  This is required by the same origin policy if a website stores data in local storage, indexeddb, cache storage, etc. and wants to retrieve it later.  I noticed that Working Copy uses a different port with each preview, making testing javascript single page apps that utilize data storage impossible and was wondering if Textastic had a way to always use the same port when previewing html/js.

Currently, Textastic uses a new random port every time the web server is started.