yesodweb / yesod

A RESTful Haskell web framework built on WAI.
http://www.yesodweb.com/
MIT License
2.63k stars 370 forks source link

widgetToPageContent support the option to have julius files generate a script tag with crossorigin attribute #1300

Closed sbditto85 closed 7 years ago

sbditto85 commented 7 years ago

Disclosure: I'm a Haskell and Yesod noob.

It would be nice to have the script tag generated when calling widgetToPageContent have the option to have attributes or be able to at least pass a crossorigin value.

Having my scripts load on a different sub domain prevents me from seeing the full error details when using window.onerror, if setup properly having a crossorigin="anonymous" allows me to then see those error details.

if https://github.com/yesodweb/yesod/blob/master/yesod-core/Yesod/Core/Class/Yesod.hs#L573 ( Githubissues.

  • Githubissues is a development platform for aggregating issues.