Hiding an API Key on Weebly Server

Hello there Weebly community!

I currently own a Weebly website and on it I built a little guild Armory using Blizzard's World of Warcraft API.

My problem is: Currently, my API key is coded directly client-side, so anyone inspecting my page can just grab my API key, which is not favorable.

I need to find a way to make an AJAX request to my website's server where I could go and snatch my key. The biggest issue with this is with Weebly, you cannot just "access" your files like a normal FTP server would let you.

Is there a workaround to this?

Thank you!

Tags (3)
9,370 Views
Message 1 of 6
Report
1 Best Answer
Square

Best Answer

I'm not sure if this would work for you, though when editing a theme you can upload files to the assets folder there.  Anything uploaded there can be accessed with this URL structure:

http://www.mysite.com/files/theme/filename.extension

View Best Answer >

9,358 Views
Message 5 of 6
Report
5 REPLIES 5
Square

Best Answer

I'm not sure if this would work for you, though when editing a theme you can upload files to the assets folder there.  Anything uploaded there can be accessed with this URL structure:

http://www.mysite.com/files/theme/filename.extension

9,359 Views
Message 5 of 6
Report

Im pretty sure I can figure out a way of doing what im looking for with this. Thank you!
9,350 Views
Message 5 of 6
Report
Square

Awesome! Glad to help.

9,331 Views
Message 5 of 6
Report

 
4,442 Views
Message 7 of 6
Report

imageDipankar Roy

4,441 Views
Message 7 of 6
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.