• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

[SOLVED] How to whitelist jquery/js?

Scheduled Pinned Locked Moved Captive Portal
2 Posts 2 Posters 1.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dylanh724
    last edited by Feb 23, 2015, 2:41 PM Feb 23, 2015, 1:26 PM

    EDIT: Figured out my own question: services >> captive portal >> edit >> allowed hostnames >> add TO "ajax.googleapis.com" >> add TO "code.jquery.com" >> Done

    It suddenly came over me that jquery and js library references are on WAN lol – I suppose I could save it locally, but was using some jqueryUI which references some images -- I'm not that great with the firewall .. can anyone give me a small guide to whitelist jquery?

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Feb 23, 2015, 5:40 PM

      @dylanh724:

      ….. can anyone give me a small guide to whitelist jquery?

      Easy.
      The answer is in front of you  ;)
      Have a look at the source code of your page, and with-list all needed URLS's (or IP's) that are outside of your LAN.

      'jquery' does not have its own 'fire wall rules'.
      Its just a script that needs certain URL's - so white list these URL's.
      Now you understand why you should consider putting these scripts locally (but then you keep in mind: if they are updated, you should update your local copies).

      It might be easier to let the user first authenticate, and then let him use all the fancy stuff ….

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received