joshtynjala commented on issue #1255:
URL: https://github.com/apache/royale-asjs/issues/1255#issuecomment-2877024179

   > this also not working on below URL which was working fine earlier.
   > 
https://royale.apache.org/blog/using-external-javascript-libraries-in-apache-royale/
   
   > please visit apache royale online demo and click "HIGHLIGHT BLOCK" button. 
Here is link for same
   
https://royale.apache.org/blog-examples/BE0012_Using_external_javascript_libraries_in_Apache_Royale/index.html
   > earlier it was working fine but now it not working on Firefox and edge
   
   The BE0012_Using_external_javascript_libraries_in_Apache_Royale is now fixed 
on the Apache Royale website. There were some changes necessary to comply with 
additional security restrictions imposed on all of Apache's web servers. 
Basically, we were no longer allowed to load .js and .css files from external 
URLs (in this case, we couldn't load the highlight.min.js and 
atom-one-dark.min.css files from `cdnjs.cloudflare.com`). However, that's a 
restriction specific to our servers, and anyone else's projects are not 
affected by this restriction, unless someone at your organization 
coincidentally added similar restrictions at the same time (which seems 
unlikely).
   
   You'll notice that, after the changes, the hljs.as file still contains the 
following:
   
   ```as3
   /**
    * @externs
    */
   COMPILE::JS
   ```
   
   What was removed from the hljs.as file was the `<inject_script>` section. 
However, that doesn't mean that everyone needs to stop using`<inject_script>`. 
This feature still exists, it should still work the same, and we are not 
planning to remove it. In this example, we simply switched to using the new 
-js-include-script and -js-include-css compiler options, which allowed us to 
use local copies of the .js and .css files instead of loading them from 
`cdnjs.cloudflare.com`.
   
   @sanjeev-rajput If you continue to have issues in your own project, and 
you'd like some help fixing them, then please share some code with us. Ideally, 
create a simplified project that demonstrates your issue in isolation. Thank 
you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to