sharepoint online – 403 while trying to create a pnp privisioning template

Ok this site recently got switched form a modern site to a classic site and now I cannot use anything on the site to include turning on and off features with powershell. This is a sharepoint online site with office 365 permissions. I used to be able to use powershell on this site but now i am only getting a 403 error. Any help would be greatly appreciated.

Connect-PnPOnline

I enter the URl and credentials without fail, but the minute I run

Get-PnPProvisioningTemplate -Out "example-Template.xml"

or

Set-PnPList -Identity "Some Library" -ForceCheckout $false

I will get the following error

  Set-PnPList : The remote server returned an error: (403) Forbidden.
At line:1 char:1
+ Set-PnPList -Identity "Some Library" -ForceCheckout $false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) (Set-PnPList), WebException
    + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Lists.SetList

I ran the log against it also and got this error in line one

 powershell.exe Error: 0 : 2020-09-16 08:03:52.1674 (OfficeDevPnP.Core) (0) (Error) ExecuteQuery threw following exception: System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

apache 2.4 – write .htaccess to make all the files n folders present in a folder to be served on my website when in maintenance mode (403 (forbidden mode))?

I have the following file structure in cPanel

web_root_folder_
               |____.neverDelete/_____
               |                     |_____img/logo-30.png
               |                     |_____js/error-page.js
               |                     |_____css/error-page.css
               |
               |____403.shtml
               |
               |____.htaccess

I wanted to write .htaccess with some code that puts the website in ‘maintenance mode’.
So…I wrote 403.shtml page, which uses external css, javascript and images stored in .neverDelete folder.

I wrote the following code in .htaccess

# The WORKING CODE (Too Long 😑)
Deny From All
<FilesMatch 404-layout.min.css>
    Allow From All
</FilesMatch>
<FilesMatch logo-small-transparent-30.png>
    Allow From All
</FilesMatch>
<FilesMatch error-page.js>
    Allow From All
</FilesMatch>

This code successfully worked. It implemented a 403(forbidden) for all files except the 3 files (mentioned in .htaccess file)

but, I want to make all the files n folders present in .neverDelete/ to be served on my website when in maintenance mode.

So i visited http://httpd.apache.org/docs/1.3/mod/core.html#directory to get help. I wrote the code in .htaccess below that actually gave in a 500(server error).

# WRONG CODE
Deny From All
<Directory .neverDelete/ >
    Allow From All
</Directory>

I dont know why it did not worked. Please Suggest how can I make all the files n folders present in .neverDelete/ to be served on my website when in maintenance mode.

sharepoint online – 403 error when retrieving site’ members

I am using the SharePoint REST API to retrieve site’ members.
However, some sites provide the 403 (Forbidden) error when retrieving members by using the Admin account.

I guess these sites were created by other accounts (Of course the Admin account manages these accounts).

So, do we have any way to retrieve site’ members via the admin account?

spfx – I’m getting 403 access denied errors on REST calls in Monitor Mode; how can I turn off Monitor Mode?

My sessions are all being redirected with a loading/splash screen telling me my session is being monitored. My SPFx webpart loads fine but any action I take that requires a REST call, I get 403 Access denied console errors.

My url gets this .us3.cas.ms/ appended to it. So instead of site.sharepoint.com/sites... it’s site.sharepoint.com.us3.cas.ms/sites...

Relevant, but not very useful doc:

https://docs.microsoft.com/en-us/sharepoint/troubleshoot/administration/access-to-sharepoint-online-is-monitored

I’ve spent a while in the Microsoft Cloud App Security (security.microsoft.com/info) area of the admin console under Microsoft 365 Security and I can locate my name and see where policy is being invoked and my sign-ins are being redirected… But how do I turn this off completely? How do I stop this from happening to users? This completely blocks any REST calls and renders my SPFx solutions useless.

Any help is appreciated.

apache 2.4 – 403 forbidden CGI-BIN

I have installed Appache in Windows local and work fine but haven’t access to http://localhost/cgi-bin/

403    Forbidden
You don't have permission to access this resource.

I have added in httpd.conf this line also

<Directory "${SRVROOT}/cgi-bin">
    **Options Indexes FollowSymLinks**
    AllowOverride All
    Require all granted
    **Allow from all**
</Directory>

How fix it? i want start my CGI script

I test a script in cgi-bin

hello.pl

#!/usr/local/bin/perl

# hello.pl -- my first perl script!

print "Content-type: text/htmlnn";

print "Hello, world!n";

Also for windows what this url?

#!/usr/local/bin/perl

Django AJAX finds csrf_token cookie but still returns 403 (Forbidden) error

I’m trying to make an AJAX post request but doing so returns the error 403 (Forbidden) in the browser console and Forbidden (CSRF token missing or incorrect.) in my view. I have followed the official Django documentation regarding AJAX Post requests here to the best of my ability but still run into this error.

The strangest part about all of this is that AJAX Posting worked fine before I had re-ordered by my HTML scripts. In fact, I didn’t have to manually specify a csrf_token in my JavaScript, all I did was include the js-cookie script via CDN and it worked. So, the root of the problem may lie in the order of my scripts, but I really can’t say for sure.

Here is everything else I tried:

  1. Confirmed that CSRF_USE_SESSIONS and/or CSRF_COOKIE_HTTPONLY is set to False (they are False by default and I never had a need to touch them)
  2. Used the JavaScript Cookie library CDN in my HTML
  3. Logged the csrf_token in the developer console (can confirm the token is at least being extracted from the cookie)
  4. Added the function annotation @ensure_csrf_cookie to my view, without the parameter quotes. Including them with quotes like @ensure_csrf_cookie("MyViewName") returns the error AttributeError: 'function' object has no attribute 'COOKIES'.
  5. Confirmed that django.middleware.csrf.CsrfViewMiddleware exists in my settings.py MIDDLEWARE.

This is what my base.html looks like:

<head>
       
        <!-- Bootstrap (4.3.1) -->
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

        <!-- jQuery (3.3.1) -->
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

        {% load static %}  <!-- Makes Bootstrap modals actually appear -->
        <script type="text/javascript" src="{% static 'js/ajax/jquery-3.5.1.js' %}"></script>

        <!-- AJAX csrf_token (for one-line getCookie function) -->
        <script src="https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js"></script>

        <!-- These are repeats, but if I remove one or the other, Django will start returning errors -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>


        <!-- jQuery UI (1.12.1) -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
        <!-- jQuery UI (CSS) -->
        <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
        <!-- jQuery UI AJAX -->
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>

        <!-- Moment (Datetime picker requires this to be loaded first) -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js"></script>

        <!-- Datetime picker -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"></script>

        <!-- JavaScript Popper (I don't remember why I have this) -->
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>

    </head>

MyJavaScript.js:

$(document).ready(function(){

    const csrftoken = Cookies.get('csrftoken');
    $.ajax({

            type: 'POST',
            url: "/log-add/",
            data: selected_value,
            csrfmiddlewaretoken: '{{ csrf_token }}',
            success: function(data)
            {
               // Success...
            }
            error: function(errorData)
            { 
              // Error... ()
              // The developer console outputs this error information
            }
}

With all of that being said, if anyone can point me in the right direction to successfully POST an AJAX request, I’d greatly appreciate it in advance.

Error 403 Permission Denied [closed]

I’m trying to hide a page in a website, so I made every request to this specific page return "403 Permission Denied".

How can someone pass this defense?

applications – GALAXY TAB 2 ANDROID 4.0.3. problem reinstalling BorrowBox Library app

I bought the above in April 2017 mainly to use it as an ebook reader for public library services.

I installed Overdrive and BorrowBox, and both have worked fine till now.

However on a recent attempt to use BorrowBox, it ‘jammed’ on an opening screen. Closing down and restarting failed to shift this, and I uninstalled the app, thinking to reinstall it, and get it
working again.

Needless to say, there was no reistall option; and an attempt to reload it from playbox failed with the ‘incompatible’ message.

Bolinda of course does not support or provide earlier versions. The only source I can find on the web has
versions back to 2.9.14, but that requires android 4.1.

I found a reference and download link to V2.7.0, compatible with android 4.0, but the link no longer works.

How can I get back to a usable Borrowbox application, without having to replace an otherwise working tablet?

Have I deleted the code when I uninstalled ? I can find nothing searching the file directory which suggests it might still be there.

Can anyone provide a copy of BorrowBox v2.7.0 or earlier, or point me at a source ?

Hoping someone can point me in the right direction.

Ivory Search – admin-ajax.php 403 Forbidden

I’ve been using this plug in recently, called ivory-search, it has a cool functionality that allows me to implement AJAX search in my website.

I’ve had this problem before, usually cleaning cache or checking website permissions fixed it, but recently for some reason, it doesn’t .

Problem:

Everytime i try to use the ajax search on my wordpress it returns a 403 Forbidden error

I’ve seen a few solutions tossed around, some related to htaccess, and bypass some rules, but none of them worked.

403 error

Thanks in advance! I know this problem is quite frequent, and i’ve encountered it before, but now i don’t know what to do.

Use curl to upload files to SharePoint Online – 403 FORBIDDEN

I have to upload files from linux box to SharePoint Online. I have used following command:

curl -k -ntlm --user myusername:password --upload-file test.txt "https://url/test.txt" -v

But I get error:

403 FORBIDDEN.

However, wget command works perfectly to download files.

wget --cookies=on --load-cookies cookies.txt --keep-session-cookies --user myusername --password mypassword "https://url/test.txt"

Is there a way to make it work?