Request was denied for security как исправить

I use cordova 6.3.1 and crosswalk of cordova plugin 2.1.0 in Android App. I use self certification in server. When I send http post request from cordova app to server, "Request was denied for secur...

I use cordova 6.3.1 and crosswalk of cordova plugin 2.1.0 in Android App.
I use self certification in server.
When I send http post request from cordova app to server, «Request was denied for security» message appeared in screen bottom possion and http post request is fail.
I can send http post request using old crosswalk of cordova plugin(1.5.0).
Do you know someone solutions.
※Following site method is not work
http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/

asked Oct 14, 2016 at 5:49

yone's user avatar

4

I had the same Toast message displaying Request was denied for security. For me it was also certificate related but the solution was unexpected. The system time of my device was off by quite a bit (almost a year) and this caused the ssl communication to fail. Correcting the time solved it for me. (Thanks to the Google accounts page, which also encountered the same error in the browser and gave a very nice explanation about the reason.)

answered Feb 3, 2017 at 12:25

mvandillen's user avatar

mvandillenmvandillen

88410 silver badges17 bronze badges

1

I solved this by adding the last 3 lines of the following snippet to config.xml:

<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />

answered Dec 5, 2016 at 12:57

StJimmy's user avatar

StJimmyStJimmy

5043 gold badges9 silver badges18 bronze badges

I was facing the same problem. Try to remove the meta tag for CSP (Content Security Policy), and add the lines below in config.xml:

<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />

Also, I have installed the cordova-plugin-whitelist and the crosswalk-lite.
Run cordova clean before build your android app.

I hope it helps!

— EDIT —

The above solution only worked in debug mode for me.
So, I found a work around using cordova-plugin-crosswalk-certificate with Crosswalk version 18+!

answered Feb 15, 2017 at 15:55

pcsantana's user avatar

pcsantanapcsantana

5995 silver badges12 bronze badges

If none of the other answer’s work, check the date/time and timezone

answered Oct 13, 2017 at 11:59

loonix's user avatar

loonixloonix

3796 silver badges14 bronze badges

I had my url wrong(Custom domain) with a spelling mistake and you can also check whether the ssl certificate is valid, it gives error, when your ssl certificate is expired.

answered Sep 8, 2017 at 6:03

Karthikeyan VK's user avatar

Karthikeyan VKKarthikeyan VK

4,8583 gold badges36 silver badges46 bronze badges

Hi fellas.
I’m having a hard time to generate a functional .apk of my Ionic app. When Crosswalk is enabled I get this toast (Request was denied for security) and a error on all https calls (net::ERR_INSECURE_RESPONSE). Could somebody give me a hand here? Thanks, guys!

config.xml

<?xml version='1.0' encoding='utf-8'?>
<widget id="xxx.yyy" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>XXX.YYY</name>
    <description>xxx.yyy</description>
    <author email="xxx.yyy" href="xxx.yyy">xxx.yyy</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="mailto:*" />
    <allow-navigation href="http://*/*" />
    <allow-navigation href="https://*/*" />
    <allow-navigation href="tel:*" />
    <allow-navigation href="mailto:*" />
    <platform name="android">
        <allow-intent href="market:*" />
		...
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
		...
	</platform>
    <preference name="orientation" value="default" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="StatusBarStyle" value="default" />
    <preference name="android-minSdkVersion" value="16" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <engine name="android" spec="^6.2.3" />
    <engine name="ios" spec="^4.5.3" />
    <plugin name="cordova-plugin-device" spec="^1.1.6" />
    <plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
    <plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^1.1.15" />
    <plugin name="cordova-plugin-statusbar" spec="^2.2.3" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.2" />
    <plugin name="cordova-plugin-app-version" spec="^0.1.9" />
    <plugin name="mx.ferreyra.callnumber" spec="~0.0.2" />
    <plugin name="cordova-plugin-email-composer" spec="^0.8.11" />
    <plugin name="cordova-plugin-crosswalk-webview" spec="^2.3.0">
        <variable name="XWALK_VERSION" value="23+" />
        <variable name="XWALK_LITEVERSION" value="xwalk_core_library_canary:17+" />
        <variable name="XWALK_COMMANDLINE" value="--disable-pull-to-refresh-effect" />
        <variable name="XWALK_MODE" value="embedded" />
        <variable name="XWALK_MULTIPLEAPK" value="true" />
        <variable name="XWALK_HOSTS" value="http://*/,https://*/" />
    </plugin>
</widget>

package.json

{
  "name": "xxx.yyy",
  "version": "0.0.1",
  "description": "xxx.yyy",
  "scripts": {
	...
  },
  "dependencies": {
    "@angular/common": "5.0.0",
    "@angular/compiler": "5.0.0",
    "@angular/compiler-cli": "5.0.0",
    "@angular/core": "5.0.0",
    "@angular/forms": "5.0.0",
    "@angular/http": "5.0.0",
    "@angular/platform-browser": "5.0.0",
    "@angular/platform-browser-dynamic": "5.0.0",
    "@ionic-native/app-version": "^4.4.2",
    "@ionic-native/call-number": "^4.4.2",
    "@ionic-native/core": "^4.3.1",
    "@ionic-native/email-composer": "^4.4.2",
    "@ionic-native/in-app-browser": "^4.3.1",
    "@ionic-native/splash-screen": "^4.3.1",
    "@ionic-native/status-bar": "^4.3.1",
    "@ionic/storage": "2.1.3",
    "call-number": "^1.0.1",
    "chart.js": "^2.7.1",
    "cordova-android": "^6.2.3",
    "cordova-ios": "^4.5.3",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-crosswalk-webview": "^2.3.0",
    "cordova-plugin-device": "^1.1.6",
    "cordova-plugin-email-composer": "^0.8.11",
    "cordova-plugin-inappbrowser": "^1.7.1",
    "cordova-plugin-ionic-keyboard": "^2.0.2",
    "cordova-plugin-ionic-webview": "^1.1.15",
    "cordova-plugin-splashscreen": "^4.0.3",
    "cordova-plugin-statusbar": "^2.2.3",
    "cordova-plugin-whitelist": "^1.3.2",
    "ionic-angular": "3.9.2",
    "ionicons": "3.0.0",
    "mx.ferreyra.callnumber": "~0.0.2",
    "ngx-pipes": "^2.0.5",
    "rxjs": "5.5.2",
    "sw-toolbox": "3.6.0",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.1.5",
    "typescript": "~2.4.2"
  },
  "config": {
    "ionic_aot_write_to_disk": true,
    "ionic_source_map": "source-map",
    "ionic_webpack": "./webpack.config.js"
  },
  "cordova": {
    "platforms": [
      "android",
      "ios"
    ],
    "plugins": {
      "cordova-plugin-device": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-whitelist": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-app-version": {},
      "mx.ferreyra.callnumber": {},
      "cordova-plugin-email-composer": {},
      "cordova-plugin-crosswalk-webview": {
        "XWALK_VERSION": "23+",
        "XWALK_LITEVERSION": "xwalk_core_library_canary:17+",
        "XWALK_COMMANDLINE": "--disable-pull-to-refresh-effect",
        "XWALK_MODE": "embedded",
        "XWALK_MULTIPLEAPK": "true",
        "XWALK_HOSTS": [
          "http://*/",
          "https://*/"
        ]
      }
    }
  }
}

I use cordova 6.3.1 and crosswalk of cordova plugin 2.1.0 in Android App.
I use self certification in server.
When I send http post request from cordova app to server, «Request was denied for security» message appeared in screen bottom possion and http post request is fail.
I can send http post request using old crosswalk of cordova plugin(1.5.0).
Do you know someone solutions.
※Following site method is not work
http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/

asked Oct 14, 2016 at 5:49

yone's user avatar

4

I had the same Toast message displaying Request was denied for security. For me it was also certificate related but the solution was unexpected. The system time of my device was off by quite a bit (almost a year) and this caused the ssl communication to fail. Correcting the time solved it for me. (Thanks to the Google accounts page, which also encountered the same error in the browser and gave a very nice explanation about the reason.)

answered Feb 3, 2017 at 12:25

mvandillen's user avatar

mvandillenmvandillen

88410 silver badges17 bronze badges

1

I solved this by adding the last 3 lines of the following snippet to config.xml:

<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />

answered Dec 5, 2016 at 12:57

StJimmy's user avatar

StJimmyStJimmy

5043 gold badges9 silver badges18 bronze badges

I was facing the same problem. Try to remove the meta tag for CSP (Content Security Policy), and add the lines below in config.xml:

<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />

Also, I have installed the cordova-plugin-whitelist and the crosswalk-lite.
Run cordova clean before build your android app.

I hope it helps!

— EDIT —

The above solution only worked in debug mode for me.
So, I found a work around using cordova-plugin-crosswalk-certificate with Crosswalk version 18+!

answered Feb 15, 2017 at 15:55

pcsantana's user avatar

pcsantanapcsantana

5995 silver badges12 bronze badges

If none of the other answer’s work, check the date/time and timezone

answered Oct 13, 2017 at 11:59

loonix's user avatar

loonixloonix

3796 silver badges14 bronze badges

I had my url wrong(Custom domain) with a spelling mistake and you can also check whether the ssl certificate is valid, it gives error, when your ssl certificate is expired.

answered Sep 8, 2017 at 6:03

Karthikeyan VK's user avatar

Karthikeyan VKKarthikeyan VK

4,8583 gold badges36 silver badges46 bronze badges

I use cordova 6.3.1 and crosswalk of cordova plugin 2.1.0 in Android App.
I use self certification in server.
When I send http post request from cordova app to server, «Request was denied for security» message appeared in screen bottom possion and http post request is fail.
I can send http post request using old crosswalk of cordova plugin(1.5.0).
Do you know someone solutions.
※Following site method is not work
http://ivancevich.me/articles/ignoring-invalid-ssl-certificates-on-cordova-android-ios/

asked Oct 14, 2016 at 5:49

yone's user avatar

4

I had the same Toast message displaying Request was denied for security. For me it was also certificate related but the solution was unexpected. The system time of my device was off by quite a bit (almost a year) and this caused the ssl communication to fail. Correcting the time solved it for me. (Thanks to the Google accounts page, which also encountered the same error in the browser and gave a very nice explanation about the reason.)

answered Feb 3, 2017 at 12:25

mvandillen's user avatar

mvandillenmvandillen

88410 silver badges17 bronze badges

1

I solved this by adding the last 3 lines of the following snippet to config.xml:

<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />

answered Dec 5, 2016 at 12:57

StJimmy's user avatar

StJimmyStJimmy

5043 gold badges9 silver badges18 bronze badges

I was facing the same problem. Try to remove the meta tag for CSP (Content Security Policy), and add the lines below in config.xml:

<access origin="*" />
<allow-intent href="*" />
<allow-navigation href="*" />

Also, I have installed the cordova-plugin-whitelist and the crosswalk-lite.
Run cordova clean before build your android app.

I hope it helps!

— EDIT —

The above solution only worked in debug mode for me.
So, I found a work around using cordova-plugin-crosswalk-certificate with Crosswalk version 18+!

answered Feb 15, 2017 at 15:55

pcsantana's user avatar

pcsantanapcsantana

5995 silver badges12 bronze badges

If none of the other answer’s work, check the date/time and timezone

answered Oct 13, 2017 at 11:59

loonix's user avatar

loonixloonix

3796 silver badges14 bronze badges

I had my url wrong(Custom domain) with a spelling mistake and you can also check whether the ssl certificate is valid, it gives error, when your ssl certificate is expired.

answered Sep 8, 2017 at 6:03

Karthikeyan VK's user avatar

Karthikeyan VKKarthikeyan VK

4,8583 gold badges36 silver badges46 bronze badges

by Madalina Dinita

Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer. She is interested in all things technology, especially emerging technologies… read more


Updated on December 2, 2021

request was blocked security reasons

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer’s security and performance
  • Restoro has been downloaded by 0 readers this month.

The request was blocked for security reasons message can sometimes appear in your browser and prevent you from downloading attachments or visiting certain websites. However, there’s a way to fix that problem, and today we’re going to show you how to do it.

Sometimes when you switch to another browser, your info won’t sync correctly. This can lead to various issues due to security reasons. The cause for this problem are certain file types that are blocked in common email services or faulty plug-ins. However, there’s a way to fix this problem.

How can I fix Blocked for security reasons message in Gmail

  1. Check the email attachment file type
  2. Disable add-ons
  3. Disable your VPN

1. Check the email attachment file type

Certain attachments may be blocked by your email service. For example, Gmail doesn’t allow attachments that contain compressed files, such as gz or .bz2. We already covered this issue in-depth in our RAR email attachments blocked for security reasons in Gmail article, so be sure to check it out.

2. Disable add-ons

In this case, the actual culprit is most likely a security setting from an add-on you’ve installed at some point. You can disable plug-ins one by one till you’ve found the one responsible for your troubles.

For Internet Explorer 11

  1. Open Internet Explorer, and click on the Tools icon, next to the Tools button.
  2. Now click Manage add-ons.
  3. Under the Show panel, click on All add-ons, and then select the add-on you wish to disable.
    Request Was Blocked For Security Reasons Internet Explorer
  4. Click Disable to disable the add-on;
  5. Restart Internet Explorer.

For Mozilla

  1. In Firefox click the menu button and choose Add-ons, then click the Extensions panel.
  2. Select the add-on you wish to disable.
    Request Was Blocked firefox
  3. Click the Disable button(or Remove if you wish to permanently discard the extension).
  4. Click Restart now if it pops up. Your information will be saved and restored after the restart.

For Chrome

  1. In Chrome click on the Menu icon at the top right of the browser window.
  2. Now choose More tools and select Extensions.
    chrome Request Was Blocked For Security Reasons
  3. Uncheck Enabled to disable an extension.
  4. Restart Chrome.

3. Disable your VPN

If you’re using a VPN to mask your IP, Mozilla will restrict your access to websites you’re trying to browse. Disable your VPN and try accessing the website again. Also, you might be able to fix the problem by changing the URL from http:// to https://.

If this issue is caused by your VPN, you may be able to fix it by switching to a different service.

Some of the best VPNs for Windows 10 PCs will not interfere with your browser. They generally come with zero-logging policies, killswitch protection, and split tunneling.

We recommend you get a stable VPN with a large number of servers and good worldwide coverage. Stable and worthwhile VPNs are configured to allow you to browse securely and surpass all restrictions without causing any errors in the process.

We hope these solutions could help, in the meantime, what problems have you encountered while using your browser?

newsletter icon

Newsletter

Понравилась статья? Поделить с друзьями:
  • Request was blocked by the security rules error code 14
  • Request validation error fastapi
  • Request timeout error message
  • Request timed out icmp error 11010
  • Request synchronization error