Skip to content
Snippets Groups Projects
  • JediKev's avatar
    ae5ced39
    issue: iFrame Single Quotes · ae5ced39
    JediKev authored
    It's all about the single quotes baby! Apparently I can't read; the single
    quotes are only meant for word options such as `'self'` and `'none'`. When
    adding single quotes to the `<host-source>` options it takes them
    literally…too literally. For example, if your options are `'localhost:80
    localhost:8080 localhost:8000'` then `'localhost:80` and `localhost:8000'`
    will be seen as "invalid" due to the single quotes. This removes the single
    quotes from every line that sets the CSP so all options are valid. This also
    adds single quotes around the `self` option so it stays valid as well.
    ae5ced39
    History
    issue: iFrame Single Quotes
    JediKev authored
    It's all about the single quotes baby! Apparently I can't read; the single
    quotes are only meant for word options such as `'self'` and `'none'`. When
    adding single quotes to the `<host-source>` options it takes them
    literally…too literally. For example, if your options are `'localhost:80
    localhost:8080 localhost:8000'` then `'localhost:80` and `localhost:8000'`
    will be seen as "invalid" due to the single quotes. This removes the single
    quotes from every line that sets the CSP so all options are valid. This also
    adds single quotes around the `self` option so it stays valid as well.