samedi 24 décembre 2016

Is there a way to get requests to work when calling from a localhost for testing

I'm getting the errors when testing my application locally since I switched to https:

Warning: Domain www.example.com does not specify a meta-policy.

Applying default meta-policy 'master-only'. This configuration is deprecated. See http://ift.tt/TZoLx3 to fix this problem.

Error: Request for resource at http://ift.tt/2iquixC by requestor from http://localhost:8888/Test-debug/Test.swf is denied due to lack of policy file permissions.

I tried changing my localhost to https but got the following error:

Secure Connection Failed

An error occurred during a connection to localhost:8888. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem.

From what I've read I can upload and add a policy file and changing secure to true but I don't want to allow calls from anywhere. Once the swf is on my server everything works fine.

Is there a way to get this to work locally for testing? Is there something that I can enable while testing like:

Security.allowDomain("localhost");

Or do I have to upload a cross domain policy and then delete that policy when I'm done testing?

Aucun commentaire:

Enregistrer un commentaire