# Help... Permission denied on resizeTo

**URL:** <https://forum.kirupa.com/t/help-permission-denied-on-resizeto/258656>\
**Category:** Uncategorized\
**Created:** [April 26, 2008, 7:10am UTC](https://forum.kirupa.com/t/help-permission-denied-on-resizeto/258656 "2008-04-26T07:10:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniolea](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@antoniolea](https://forum.kirupa.com/u/antoniolea)\
**Post date:** [April 26, 2008, 7:10am UTC](https://forum.kirupa.com/t/help-permission-denied-on-resizeto/258656/1 "2008-04-26T07:10:31Z")

</div>

I have a simple javascript on html that uses resizeTo (w,h)

and I have a domain that redirects to [antoniolea.com](http://antoniolea.com) (301 permanent) and I get a permission denied error.  
I do not have problem if I load the site directly from the original domain.

[www.antoniolea.com](http://www.antoniolea.com) is the original domain  
and [capainflash.net](http://capainflash.net) is the domain that permanently redirects to [antoniolea.com](http://antoniolea.com) (and i get permission denied error here)

Is there a way I can call this function from [captainflash.net](http://captainflash.net)?

Any help would be greatly appreciated…

Tony
