openziti / ziti-browzer-core

Core componentry for the Ziti browZer ecosystem (used internally by ziti-browzer-runtime and ziti-sdk-browzer)
Apache License 2.0
9 stars 1 forks source link

style import isn't rewritten #172

Open pascalgross opened 1 month ago

pascalgross commented 1 month ago

I'm serving a private web app using browZer (ghcr.io/openziti/ziti-browzer-bootstrapper:latest which is 0.63.4).

The webapp is loading, but styles aren't correctly displayed. I noticed, how those styles are meant to be loaded (from the index).

`

`

http://ad-appsrv01.ad.xyz.de is the private server which isn't visible to the internet. This causes two problems:

  1. this poses a mixed content request (to http from https), which is blocked by the browser
  2. the private address is not reachable from the internet

The expected behaviour would be, that the address is rewritten like all other src= addresses.

rentallect commented 1 month ago

@pascalgross I might not completely understand what you're encountering, so to help clarify for me:

Are you saying your web app emits HTML that includes <style> tags that contain @import directives, and browZer doesn't adjust the URL?

My understanding is that the @import rule cannot be used directly within an HTML